Hangfire icon indicating copy to clipboard operation
Hangfire copied to clipboard

add try-catch DistributedLockTimeoutException means another Hangfire …

Open shenjielx opened this issue 3 years ago • 2 comments
trafficstars

…server did this work.

shenjielx avatar Mar 04 '22 08:03 shenjielx

@shenjielx could you please add more details about the problem you observe without this change? There's an outer distributed lock acquisition to synchronise recurring job scheduler executions on different machines so it's unlikely due to another server.

odinserj avatar Mar 08 '22 07:03 odinserj

@shenjielx could you please add more details about the problem you observe without this change? There's an outer distributed lock acquisition to synchronise recurring job scheduler executions on different machines so it's unlikely due to another server.

But I want to run in different machines, the UseConnectionDistributedLock in EnqueueNextRecurringJobs method, i set the lock only in same machine. When I run more recurring jobs (1 second), I found it spent time more than 1 second, it's sync every recurring job, so I want to run diff recurring job in different machines. I can?

shenjielx avatar Mar 08 '22 11:03 shenjielx