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

Remove to_f in set method to prevent error #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahacop
Copy link

@ahacop ahacop commented Sep 19, 2024

This change prevents a NoMethodError when retrying jobs or scheduling jobs with set(wait: ...) for adapters like GoodJob and Solid Queue.

Fixes #92.

I added a test to check that scheduled_at is not cast. I wasn't sure if you thought it was necessary to bring in Solid Queue or Good Job to actually test those adapters. Happy to make changes if you have other suggestions on how to test here.

This change prevents a `NoMethodError` when retrying jobs or scheduling
jobs with `set(wait: ...)` for adapters like GoodJob and Solid Queue.
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.

#retry_job raises NoMethodError when used with GoodJob
1 participant