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

Multiple workers execute same job #2

Open
marius-stanescu-archive360 opened this issue Sep 12, 2018 · 2 comments
Open

Multiple workers execute same job #2

marius-stanescu-archive360 opened this issue Sep 12, 2018 · 2 comments

Comments

@marius-stanescu-archive360
Copy link

marius-stanescu-archive360 commented Sep 12, 2018

There is a bug. All the server workers execute the same job. I described the problem in more detail here.

Is this project still maintained?

@pauldotknopf
Copy link

Is this issue specific to the Sqlite provider?

@pauldotknopf
Copy link

Maybe the issue is here:

return new SQLiteDistributedLock();

It looks like a fresh lock is being created for every request for a distributed lock.

Considering there should only be one process using a single database, maybe we can just use an in-memory lock? Maybe we can borrow this class? https://github.com/perrich/Hangfire.MemoryStorage/blob/661839c2e83c0e8cd349cd4310fda7ac6b685335/src/Hangfire.MemoryStorage/MemoryStorageConnection.cs#L28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants