So we’re using Hangfire to run jobs sequentially. We want them to run regardless if the previous job succeeded or errored.
The call is made like so:
previousId = BackgroundJob.ContinueWith<BackgroundRunner>(previousId, x => x.Run(args), JobContinuationOptions.OnAnyFinishedState);
It seems to work most of the time, but if there’s an error, subsequent tasks get stuck like so:
In this case, #2501597 is:
Anything I’m doing wrong here? Maybe it has to do with the MongoDB storage for Hangfire?
Oh, also automatic retries are turned off for the jobs. Errors aren’t transient so there’s no reason to retry them.