We have more hangfire jobs than our system can process, so they pile up in a queue that never empties completely.
We've noticed that the oldest jobs never get executed. It's only the newly created jobs that do. I started looking in the code and found the code referenced below. If I understand correctly, jobs are processed in descending order (last in first out). Is this normal? I know Hangfire is FIFO by default if we use SQL.
|
orderby q.AddedAt descending |
Thank you in advance,
Jean-Simon Collard
We have more hangfire jobs than our system can process, so they pile up in a queue that never empties completely.
We've noticed that the oldest jobs never get executed. It's only the newly created jobs that do. I started looking in the code and found the code referenced below. If I understand correctly, jobs are processed in descending order (last in first out). Is this normal? I know Hangfire is FIFO by default if we use SQL.
Hangfire.MemoryStorage/src/Hangfire.MemoryStorage/MemoryStorageConnection.cs
Line 110 in 661839c
Thank you in advance,
Jean-Simon Collard