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 comparison of times for #at in job matchers. #2304

Merged
merged 1 commit into from Mar 28, 2020

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Mar 28, 2020

Prior to 4.0.0 we used to_f to ensure parity of precision with Rails internals this was lost when we added support for date matching, but this restores it for Time objects only.

Thanks to @doits for the work on this, fixes #2299 #2301.

Prior to 4.0.0 we used `to_f` to ensure parity of precision with Rails internals
this was lost when we added support for date matching, but this restores
it for Time objects only.

Co-authored-by: Markus Doits <markus.doits@stellenticket.de>
Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

LGTM!

@JonRowe JonRowe merged commit ee37445 into master Mar 28, 2020
@JonRowe JonRowe deleted the fix-enqueued-at-with-time branch March 28, 2020 10:05
JonRowe added a commit that referenced this pull request Mar 28, 2020
JonRowe added a commit that referenced this pull request Mar 28, 2020
Fix comparison of times for `#at` in job matchers.
JonRowe added a commit that referenced this pull request Mar 28, 2020
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.

expect to enqueue job at time fails with 4.0.0, worked with 3.9.1
3 participants