Update crontab naming
This commit is contained in:
parent
4a1439574d
commit
393430e981
|
|
@ -4,7 +4,7 @@ public class CrontabSettings
|
|||
{
|
||||
public CrontabBaseSetting EventSubscriber { get; set; } = new();
|
||||
public CrontabBaseSetting Watcher { get; set; } = new();
|
||||
public string LockName { get; set; } = "default";
|
||||
public string LockName { get; set; } = "CrontabWatcher:locker";
|
||||
}
|
||||
|
||||
public class CrontabBaseSetting
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ public class CrontabWatcher : BackgroundService
|
|||
_logger = logger;
|
||||
_services = services;
|
||||
_cronSettings = cronSettings;
|
||||
DIST_KEY = $"CrontabWatcher:locker-{_cronSettings.LockName}";
|
||||
DIST_KEY = _cronSettings.LockName;
|
||||
}
|
||||
|
||||
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
||||
|
|
|
|||
Loading…
Reference in a new issue