-
-
Notifications
You must be signed in to change notification settings - Fork 548
Open
Labels
bugno staleUse this label to prevent the automated stale action from closing this PR/Issue.Use this label to prevent the automated stale action from closing this PR/Issue.
Description
Module
queue_job
Describe the bug
Since #347, jobs have a cancelled state.
However the job runner does not understand this state.
queue/queue_job/jobrunner/channels.py
Lines 1048 to 1061 in 0bf3a1a
| # state transitions | |
| if not state or state == DONE: | |
| job.channel.set_done(job) | |
| elif state == PENDING: | |
| job.channel.set_pending(job) | |
| elif state in (ENQUEUED, STARTED): | |
| job.channel.set_running(job) | |
| elif state == FAILED: | |
| job.channel.set_failed(job) | |
| elif state == WAIT_DEPENDENCIES: | |
| # wait until all parent jobs are done | |
| pass | |
| else: | |
| _logger.error("unexpected state %s for job %s", state, job) |
This may lead to cancelled job filling up channels forever.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugno staleUse this label to prevent the automated stale action from closing this PR/Issue.Use this label to prevent the automated stale action from closing this PR/Issue.