We are using and created Hangfire as windows service. We have a UI that submits a job which is handled by this service.
Here is the scenario:
If the windows service is down and we submit the job from the UI the status changes to pending state. Now if I see the hangfire tables:
Hangfire.Job table shows the job to be scheduled.
Hangfire.State table shows as scheduled but the reason column says “Retry attempt 1 of 10: Could not load file or assembly 'windows service”
If we turn our windows service on:
Hangfire.State table reason column keeps on changes as
"Retry attempt 2 of 10"…
“Retry attempt 3 of 10”…
And on the hangfire dashboard the enque time keeps on increasing. And sometimes after few attempts the job runs and turns to be succeeded and sometimes it just gets stuck.
Is this an bug?