Skip to content

Commit f42bbb0

Browse files
authored
Merge pull request #440 from unity-sds/439-output-json-xcom
Remove storage of successful features in XCOM
2 parents 1db03a4 + 8ff7e6f commit f42bbb0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

airflow/docker/cwl/docker_cwl_entrypoint_modular.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,15 @@ failed_features=$(cat $failed_features_file | jq '.')
166166
echo Failed features:
167167
echo $failed_features | jq '.'
168168

169-
# Save catalog.json in a location where it will be picked up by Airflow XCOM mechanism
170-
mkdir -p /airflow/xcom/
171-
cp $successful_features_file /airflow/xcom/return.json
169+
# # Save catalog.json in a location where it will be picked up by Airflow XCOM mechanism
170+
# mkdir -p /airflow/xcom/
171+
# cp $successful_features_file /airflow/xcom/return.json
172172

173173
# Optionally, save the requested output file to a location
174174
# where it will be picked up by the Airflow XCOM mechanism
175175
# Note: the content of the file MUST be valid JSON or XCOM will fail.
176176
if [ ! -z "${json_output}" -a "${json_output}" != " " ]; then
177+
mkdir -p /airflow/xcom/
177178
cp ${json_output} /airflow/xcom/return.json
178179
fi
179180

0 commit comments

Comments
 (0)