Skip to content

add try-catch DistributedLockTimeoutException means another Hangfire … - #2007

Open
shenjielx wants to merge 1 commit into
HangfireIO:mainfrom
shenjielx:master
Open

shenjielx wants to merge 1 commit into
HangfireIO:mainfrom
shenjielx:master

Conversation

@shenjielx

Copy link
Copy Markdown
Contributor

…server did this work.

@odinserj

odinserj commented Mar 8, 2022

Copy link
Copy Markdown
Member

@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.

@shenjielx

Copy link
Copy Markdown
Contributor Author

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants