Skip to content

Commit

Permalink
fix incorrect handling of update operation API response
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Nov 12, 2024
1 parent 3a965c6 commit fe44f04
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nmdc_automation/workflow_automation/watch_nmdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ def cycle(self):
resp = self.runtime_api_handler.update_operation(
job.opid, done=True, meta=job.job.metadata
)
if not resp.ok:
logger.error(f"Error updating operation: {resp}")
continue
logging.info(f"Updated operation {job.opid} response id: {resp['id']}")

for job in failed_jobs:
self.job_manager.process_failed_job(job)
Expand Down

0 comments on commit fe44f04

Please sign in to comment.