Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Nov 6, 2023
1 parent 1e069f0 commit a153c7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/src/contrib/tapis/executors/TapisJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def execute(self):
for parent_task_output_file in parent_task_output:
# Skip all output files that do not contain the Tapis
# system file reference extension
print("PARENT TASK OUTPUT FILE", parent_task_output_file)
if TAPIS_SYSTEM_FILE_REF_EXTENSION not in parent_task_output_file.name:
continue

Expand Down Expand Up @@ -77,6 +78,7 @@ def execute(self):
_x_tapis_user=self.ctx.args.get("tapis_pipeline_owner").value
)
for file in files:
print("FILE", file)
self._set_output(
file.name + "." + TAPIS_SYSTEM_FILE_REF_EXTENSION,
json.dumps(
Expand All @@ -88,7 +90,7 @@ def execute(self):
)

return self._task_result(0)

print("JOB", job)
return self._task_result(1, errors=[f"Job '{job.name}' ended with status {job.status}. Last Message: {job.lastMessage}"])

except Exception as e:
Expand Down

0 comments on commit a153c7c

Please sign in to comment.