Skip to content

Commit

Permalink
update task queued/processing when doing cross-check
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jan 3, 2025
1 parent 2fc4b00 commit 448aac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions iceprod/server/plugins/condor.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,8 @@ async def check(self):
reason = extra.get('HoldReason', 'Job has failed')
logger.info("job %s %s.%s removed from cross-check: %r", job_id, job.dataset_id, job.task_id, reason)
self.submitter.remove(job_id, reason=reason)
else:
self.job_update(job)

await self.check_history()

Expand Down
2 changes: 1 addition & 1 deletion iceprod/server/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'idle': ['waiting', 'suspended'],
'waiting': ['queued', 'idle', 'suspended'],
'queued': ['processing', 'idle', 'waiting', 'suspended', 'failed', 'complete'],
'processing': ['idle', 'waiting', 'suspended', 'failed', 'complete'],
'processing': ['idle', 'waiting', 'queued', 'suspended', 'failed', 'complete'],
'suspended': ['idle', 'waiting'],
'failed': ['idle', 'waiting'],
'complete': [],
Expand Down

0 comments on commit 448aac5

Please sign in to comment.