Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add try-catch DistributedLockTimeoutException means another Hangfire … #2007

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shenjielx
Copy link
Contributor

…server did this work.

@odinserj
Copy link
Member

odinserj commented Mar 8, 2022

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

None yet

2 participants