Skip to content

Finished Jobs waiting in Running state while another job is in Generating Report state preventing other jobs from starting #803

@Skgland

Description

@Skgland

Ideally finished jobs would transition into the NeedsReport state upon completion to make room for the next job to start.

Currently

  1. Only one job can be in the GeneratingReport state

  2. Only one job can be in the running state

  3. Running jobs transition directly to GeneratingReport once completed and no job is already generating a report.

  4. and 2. are reasonable and fine, but I think 3. should be changed so that finished jobs unconditionally transition to NeedsReport the state used to schedule a retry of the report generation in case of report generation failure.

This way when a long job takes a long time generating a report and a following jobs finishes quickly those two don't block the queue and prevent the next job from starting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions