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

Return last Solid Queue job when there are several with the same Active Job ID #36

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

rosa
Copy link
Member

@rosa rosa commented Jan 30, 2024

This applies in the case of automatic retries performed by Active Job's retrying mechanism. In that case, the failing job finishes just fine, the exception is retried and Active Job re-enqueues the job, so for Solid Queue, these look like different jobs with the same Active Job ID. Normally, we'd be interested in the last one only, though, so just return that. In the future perhaps we can find a way to return all the instances if there are more.

…ve Job ID

This applies in the case of automatic retries performed by Active Job's
retrying mechanism. In that case, the failing job finishes just fine,
the exception is retried and Active Job re-enqueues the job, so for
Solid Queue, these look like different jobs with the same Active Job ID.
Normally we'd be interested in the last one only, though, so just return
that. In the future perhaps we can find a way to return all the instances
if there are more.
@rosa rosa merged commit 57e36dc into main Jan 30, 2024
@rosa rosa deleted the handle-multiple-retries-of-same-job branch January 30, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant