-
-
Notifications
You must be signed in to change notification settings - Fork 537
Description
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
- 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.
- Update / Install the module
- 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.
Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)