Search code examples
hangfire

Hangfire multiple "failed" queues?


Right now all job failures go to a single Failed queue. Is it possible to configure Hangfire to have multiple failed queues? For example a Retail Order job processor errors would go to a Retail Order Failure queue, while errors from a Mail Order job processor would go to a Mail Order Failure queue?


Solution

  • In fact they don't go in failed queue, in hangfire that kind of structure does not exists. They get new state see IState DeleteState, SucceededState etc.

    On dashboard itself these failed jobs are just filtered out by IMonitoringApi. So right now it not possible to do that since IState is crucial for tracking progress of the job and persisting state - not sure what road map of hangfire looks like in future ?!