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

Stop a single exception from killing a whole cron thread #19

Merged
merged 2 commits into from
Jul 3, 2015

Conversation

andrewthad
Copy link
Contributor

At present, if a cron job does something that causes it to throw an exception in IO (like making an API call to a web server that happens to be down), the whole thread gets killed. This means that the job quits running until the application is restarted. This PR prevents that behavior from occurring.

@andrewthad andrewthad mentioned this pull request Jul 2, 2015
@MichaelXavier
Copy link
Owner

This seems like an OK solution for now. The part I like about this is if you have long running tasks, there's no way that fact can interfere with how often they run. The downside here is there is no hope of the user handling exceptions from these actions. Would you mind adding documentation to this effect? Beyond that, I'm happy to merge this. Thanks!

@andrewthad
Copy link
Contributor Author

No problem. I'll add some documentation to the function.

@andrewthad
Copy link
Contributor Author

Done.

MichaelXavier added a commit that referenced this pull request Jul 3, 2015
Stop a single exception from killing a whole cron thread
@MichaelXavier MichaelXavier merged commit 560d47f into MichaelXavier:master Jul 3, 2015
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.

None yet

2 participants