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 :inline mode with future behavior to run unscheduled jobs immediately #620

Merged
merged 2 commits into from
Jun 18, 2022

Conversation

bensheldon
Copy link
Owner

@bensheldon bensheldon commented Jun 18, 2022

Also addresses the inline deprecations in the test suite.

@bensheldon bensheldon temporarily deployed to goodjob-cleanup-depreca-xylwzm June 18, 2022 16:13 Inactive
@@ -65,7 +65,7 @@ def enqueue_at(active_job, timestamp)
scheduled_at = timestamp ? Time.zone.at(timestamp) : nil

if execute_inline?
future_scheduled = (scheduled_at.nil? || scheduled_at > Time.current)
future_scheduled = scheduled_at && scheduled_at > Time.current
Copy link
Owner Author

Choose a reason for hiding this comment

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

Oops!

@bensheldon bensheldon temporarily deployed to goodjob-cleanup-depreca-xylwzm June 18, 2022 16:17 Inactive
@bensheldon bensheldon temporarily deployed to goodjob-cleanup-depreca-xylwzm June 18, 2022 16:22 Inactive
@bensheldon bensheldon merged commit 40a45e2 into main Jun 18, 2022
@bensheldon bensheldon deleted the cleanup_deprecations branch June 18, 2022 17:07
@bensheldon bensheldon added refactor Code changes that do not introduce new features bug Something isn't working and removed refactor Code changes that do not introduce new features labels Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant