Module
queue_job
Describe the bug
Since #347, jobs have a cancelled state.
However the job runner does not understand this state.
| # state transitions |
| ifnotstateorstate==DONE: |
| job.channel.set_done(job) |
| elifstate==PENDING: |
| job.channel.set_pending(job) |
| elifstatein (ENQUEUED, STARTED): |
| job.channel.set_running(job) |
| elifstate==FAILED: |
| job.channel.set_failed(job) |
| elifstate==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.
Module
queue_job
Describe the bug
Since #347, jobs have a
cancelledstate.However the job runner does not understand this state.
queue/queue_job/jobrunner/channels.py
Lines 1048 to 1061 in 0bf3a1a
This may lead to cancelled job filling up channels forever.