-
-
Notifications
You must be signed in to change notification settings - Fork 584
Update distributed lock for cronservice #1156
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
| { | ||
| public CrontabBaseSetting EventSubscriber { get; set; } = new(); | ||
| public CrontabBaseSetting Watcher { get; set; } = new(); | ||
| public string LockName { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you set a default name in case no settings is found.
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
PR Type
Enhancement
Description
Add configurable lock name for distributed locking
Update constructor to inject CrontabSettings dependency
Replace hardcoded lock key with dynamic key
Diagram Walkthrough
File Walkthrough
CrontabSettings.cs
Add LockName configuration propertysrc/Infrastructure/BotSharp.Abstraction/Crontab/Settings/CrontabSettings.cs
LockNameproperty to CrontabSettings classCrontabWatcher.cs
Implement configurable distributed lock keysrc/Infrastructure/BotSharp.Core.Crontab/Services/CrontabWatcher.cs