Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Nov 26, 2024
1 parent 9201c53 commit 61f1896
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nmdc_automation/workflow_automation/watch_nmdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def cycle(self):
if not successful_jobs and not failed_jobs:
logger.info("No finished jobs found.")
for job in successful_jobs:
logger.info(f"Processing successful job: {job.opid}, {job.workflow_execution_id}")
job_database = self.job_manager.process_successful_job(job)
# sanity checks
if not job_database.data_object_set:
Expand Down Expand Up @@ -354,6 +355,7 @@ def cycle(self):
logging.info(f"Updated operation {job.opid} response id: {resp}")

for job in failed_jobs:
logger.info(f"Processing failed job: {job.opid}, {job.workflow_execution_id}")
self.job_manager.process_failed_job(job)

def watch(self):
Expand Down

0 comments on commit 61f1896

Please sign in to comment.