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

fix(que): Fix bulk_enqueue when enqueuing more than 5 jobs #1074

Merged
merged 1 commit into from
Oct 1, 2024

Commits on Sep 24, 2024

  1. fix(que): Fix bulk_enqueue when enqueuing more than 5 jobs

    Previously, with Que `bulk_enqueue` a new span was created for every job
    in the batch.
    
    For each such span, a tag was added to _all_ jobs in the batch. This
    meant that if you enqueued 3 jobs, then 3 spans were created and each
    job had 3 tags pointing to 3 different spans.
    
    This behavior became problematic when you tried to insert more than 5
    jobs, as Que supports up to 5 tags per job. More specifically, a runtime
    error was raised by Que.
    
    This commit fixes that bug by creating only a single span when using
    bulk_enqueue.
    laurglia committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    db79b63 View commit details
    Browse the repository at this point in the history