Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16][queue_job] JobsTrap perform_enqueued_jobs not working with jobs creating new jobs #651

Closed
fdegrave opened this issue May 18, 2024 · 0 comments
Labels

Comments

@fdegrave
Copy link

fdegrave commented May 18, 2024

Module

queue_job testing utilities

Describe the bug

After a call to perform_enqueued_jobs the enqueued_jobs is empty, even if one of the jobs created new jobs.

To Reproduce

Affected versions: tested on 16

Steps to reproduce the behavior:

  1. Create a job that creates new jobs
  2. Within a job trap context, create such a job then execute it using trap.perform_enqueued_jobs
  3. trap.enqueued_jobs is empty, but the newly created jobs appear in trap.calls

Expected behavior
trap.enqueued_jobs contains the newly created jobs

Note: this is an easy fix, I already tested it. This bug report is for reference in the PR I'll create shortly.

@fdegrave fdegrave added the bug label May 18, 2024
@fdegrave fdegrave changed the title [16] queue_job JobsTrap perform_enqueued_jobs did not work if jobs create new jobs [16] queue_job JobsTrap perform_enqueued_jobs not working with jobs create new jobs May 18, 2024
@fdegrave fdegrave changed the title [16] queue_job JobsTrap perform_enqueued_jobs not working with jobs create new jobs [16][queue_job] JobsTrap perform_enqueued_jobs not working with jobs create new jobs May 18, 2024
@fdegrave fdegrave changed the title [16][queue_job] JobsTrap perform_enqueued_jobs not working with jobs create new jobs [16][queue_job] JobsTrap perform_enqueued_jobs not working with jobs creating new jobs May 18, 2024
fd-oncodna added a commit to fd-oncodna/queue that referenced this issue May 25, 2024
fd-oncodna added a commit to fd-oncodna/queue that referenced this issue May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant