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(retry-job): consider updating failures in job #3036

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

roggervalf
Copy link
Collaborator

Why

  1. Why is this change necessary? Errors are not updated when retrying a job

How

  1. How did you implement this? Pass right object into retryJob script and reuse updateJobFields include

Additional Notes (Optional)

Any extra info here.

const worker = new Worker(
queueName,
async job => {
expect(job.attemptsMade).to.equal(0);
job.discard();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replacing this test as discard method is not currently working as expected, also this method will be removed in next breaking change

Copy link
Contributor

@manast manast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@roggervalf roggervalf merged commit 21e8495 into master Jan 30, 2025
10 of 11 checks passed
@roggervalf roggervalf deleted the fix-retry-save-error branch January 30, 2025 14:04
github-actions bot pushed a commit that referenced this pull request Jan 30, 2025
## [5.39.1](v5.39.0...v5.39.1) (2025-01-30)

### Bug Fixes

* **retry-job:** consider updating failures in job ([#3036](#3036)) ([21e8495](21e8495))
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.

2 participants