-
Notifications
You must be signed in to change notification settings - Fork 111
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
Fixed rescheduling jobs when mongodb timed out during execution of job. #112
Conversation
This is great! |
@@ -225,11 +225,11 @@ SyncedCron._entryWrapper = function(entry) { | |||
} | |||
}); | |||
} catch(e) { | |||
log.info('Exception "' + entry.name +'" ' + e.stack); | |||
log.info('Exception "' + entry.name +'" ' + ((e && e.stack) ? e.stack : e)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will be better:
log.info('Exception "' + entry.name +'" ' + (e && e.stack || e));
this issue is related to #69 |
+1 |
@Kurounin cool, I was trying to get the whole thing merged. @TheGame2500 do you know if there's a release planned that includes this patch? I have 1.3.0 in production at the moment, which I suppose doesn't include it. |
@paolo-g I've been using my fork since I made the PR. The PR was merged 15 days ago. @TheGame2500 will you release a new version on atmospherejs? |
@zol bump <3 |
When using external mongo db, if it timedout when running a scheduled job or when trying to update a job that has thrown an exception, the job would not be rescheduled to run again.
This fixes that.