You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While performing a simple Enqueue such as:
BackgroundJob.Enqueue(() => Console.WriteLine("Test!"));
Hangfire will only attempt to process the job around 60% of the time. Further research shows that the job is being successfully inserted into the HangFire.Job table, but it is never processed.
The text was updated successfully, but these errors were encountered:
The problem was related to a very quick worker that picked up a background job that was not fully initialized for the enqueued state. I've fixed it by waiting for a full initialization (with timeout) before trying to change the state to Processing. If timeout expires (or when process is killed), the job simply moves back to the queue.
odinserj
changed the title
Enqueued job is not being processed
Enqueued job is not being processed with MSMQ or RabbitMQ
Jan 28, 2015
READ_COMMITTED_SNAPSHOT option may affect read operations and lead to
issues like #294 or #452. This table hint cause db engine to always
acquire shared locks, and queries will wait for pending transactions
instead of returning stale results.
From forum topic, please see http://discuss.hangfire.io/t/jobs-being-created-in-database-stuck-as-enqueued/583 for the details.
The text was updated successfully, but these errors were encountered: