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

Error When an Invalid Recurring Task is Configured #427

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

Conversation

jherdman
Copy link
Contributor

I took a first crack at resolving #414. I think it's a little bit of a blunt solution.

Resolves #414

if recurring_schedule.valid?
recurring_schedule.schedule_tasks
else
error_messages = recurring_schedule.invalid_tasks.map do |task|
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It occurs to me that if you have a record written in your DB, and then it becomes invalid this will error out. E.g. your record has a legacy class name. This would prevent SQ from booting, which might be undesirable. Perhaps it's best to log the errors instead?

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.

Invalid Recurring Jobs: No Feedback
1 participant