You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is user error, but I did spend a bunch of time troubleshooting why recurring tasks weren't being loaded.
I realized that my configuration was incorrect, but it wasn't clearly obvious until I ran through the configuration code and noticed that it skips loading the task if the schedule option is missing
Ahh, indeed! So sorry about that. It was frustrating, and several folks brought it up 😅 🙈 . The good news is that we fixed it! We changed this behaviour in version 1.1.1, so if you update to the last version (currently 1.1.3), it'll fail loudly when a recurring task is invalid.
This is user error, but I did spend a bunch of time troubleshooting why recurring tasks weren't being loaded.
I realized that my configuration was incorrect, but it wasn't clearly obvious until I ran through the configuration code and noticed that it skips loading the task if the schedule option is missing
https://github.com/rails/solid_queue/blob/main/lib/solid_queue/configuration.rb#L144
This could fail to load tasks for a number of reasons from user error:
cron: 0 * * * *
)Since we are loading from
recurring.yml
the intent is to have a recurring task. If the schedule option is missing, we should at least warn.Thanks!
The text was updated successfully, but these errors were encountered: