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

Background jobs distributed lock #10325

Merged
merged 7 commits into from Oct 15, 2021
Merged

Conversation

hikalkan
Copy link
Member

Resolves #10032.

  • Introduces Volo.Abp.DistributedLocking.Abstractions package as a local, multi-thread named locking package - we use it if the application is not clustered. It is the default unless you configure a real distributed lock provider. IAbpDistributedLock is the main service that we can acquire locks. It can be improved in the future, but enough for now. I consider the distributed locking as an internal framework feature for now.
  • Removed Volo.Abp.EventBus.Boxes package and moved code to the Volo.Abp.EventBus package.
  • Added distributed lock usage to BackgroundJobWorker, so it can work in a clustered environment.
  • Fixed bug for misusage of EventBusBoxesOptions.DistributedLockWaitDuration.Milliseconds. It should be TotalMilliseconds, not Milliseconds.

@maliming maliming merged commit a21fd41 into dev Oct 15, 2021
@maliming maliming deleted the background-jobs-distributed-lock branch October 15, 2021 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement distributed lock for background job execution
2 participants