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(job): increase attemptsMade when moving job to active #1009

Merged
merged 4 commits into from
Jan 25, 2022

Conversation

roggervalf
Copy link
Collaborator

ref #1002

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.

looks great

@@ -1560,7 +1560,7 @@ describe('workers', function () {
await new Promise<void>(resolve => {
worker.on('completed', () => {
const elapse = Date.now() - start;
expect(elapse).to.be.greaterThan(2000);
expect(elapse).to.be.greaterThan(1000);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this reduction in time needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because, the first time is moved to active, attemptsMade is set as 1, before it was 0 the first time

@roggervalf roggervalf merged commit 0974ae0 into master Jan 25, 2022
@roggervalf roggervalf deleted the fix-attempsMade branch January 25, 2022 00:51
github-actions bot pushed a commit that referenced this pull request Jan 25, 2022
## [1.66.1](v1.66.0...v1.66.1) (2022-01-25)

### Bug Fixes

* **job:** increase attemptsMade when moving job to active ([#1009](#1009)) fixes [#1002](#1002) ([0974ae0](0974ae0))
@github-actions
Copy link

🎉 This PR is included in version 1.66.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants