Skip to content

[16.0] queue_job: Jobs are stuck in "Enqueued" when created while installing / updating modules #882

@baguenth

Description

@baguenth

Jobs are stuck in "Enqueued" when created while installing / updating modules

Module

queue_job

Describe the bug

Since the last update (16.0.2.12.0) there is an issue with queue jobs.
Jobs are stuck in "Enqueued" when they have been created while installing / updating modules.

Creating jobs in a running system via user action is working fine. But if queue jobs are created in a migration or post-init script while updating / installing a module, those jobs are stuck in "Enqueued".

The stuck jobs hold up all other jobs created afterwards. The only resolution is to manually requeue the stuck jobs.

The issue was not there in 16.0.2.11.5, therefore i suspect #794 to cause the issue.

To Reproduce

Affected versions:

Steps to reproduce the behavior: 16.0.2.12.0

  1. Add a migration script in an already installed module which creates queue jobs or Add a module which creates queue jobs in a post-init script.
  2. Update / Install the module
  3. You will see jobs in the job queue which are stuck in "Enqueued".

Expected behavior
Jobs should never be stuck in "Enqueued", regardless i they come from an update, installation or regular user action.

Image

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions