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

Don’t set delayUntil if there is no delay #140

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

wfltaylor
Copy link
Contributor

@wfltaylor wfltaylor commented Feb 13, 2025

These changes are now available in 1.17.1

Currently, if a job is retried with no delay, the delayUntil property is set to the current time. I noticed this since it was causing some issues with a new test in vapor-community/vapor-queues-fluent-driver#15. This PR adjusts this so that delayUntil is nil when there is no retry delay. This aligns the behaviour with how new jobs with no delay are created.

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.57%. Comparing base (7511f2d) to head (f09951a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
- Coverage   84.83%   84.57%   -0.27%     
==========================================
  Files          22       22              
  Lines         765      765              
==========================================
- Hits          649      647       -2     
- Misses        116      118       +2     
Files with missing lines Coverage Δ
Sources/Queues/QueueWorker.swift 97.24% <100.00%> (ø)

... and 1 file with indirect coverage changes

Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

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

Excellent, thanks!!

@gwynne gwynne merged commit acdf38b into vapor:main Feb 13, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants