Update crontab naming

This commit is contained in:
vguruparan 2025-09-09 13:13:53 -05:00
parent 4a1439574d
commit 393430e981
2 changed files with 2 additions and 2 deletions

View file

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

View file

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