CampaignChain / campaignchain

CampaignChain Community Edition
Other
120 stars 51 forks source link

Scheduler to find wrong nextRun dates for report Jobs #453

Closed groganz closed 6 years ago

groganz commented 6 years ago

If there's a bug in a scheduler job service, the nextRun date might prevent the job from being executed after the bug was fixed.

For example, a report job that runs daily, will not run if there was a bug which was not fixed before the upcoming nextRun date.

The scheduler should fix the nextRun date, change the status of the last job from "open" to "error" with message "Runtime error" and a related error code, and send an error email.