C#C
C#2y ago
Julian

Hook into job state change in HangFire

Hey,

I'm currently trying to find a way to execute code that requires the JobId and the new job state every time the status of a Hangfire job changes.
With general filters it is not possible to get this data, because many values are null during this process.

Apparently there used to be something like an IBackgroundJobStateChanger but it doesn't work anymore since a few versions (Or I just don't know how...)

Does anyone have another idea to solve the problem?
Was this page helpful?