Lewis Heaton
05/17/2024, 8:54 AMNik
05/17/2024, 9:00 AMLewis Heaton
05/17/2024, 9:01 AMNik
05/17/2024, 9:02 AMNik
05/17/2024, 9:03 AMNik
05/17/2024, 9:04 AMLewis Heaton
05/17/2024, 9:16 AMMatt Wise
05/17/2024, 9:18 AMMatt Wise
05/17/2024, 9:18 AMMatt Wise
05/17/2024, 9:19 AMSebastiaan
05/17/2024, 9:23 AMLewis Heaton
05/17/2024, 9:29 AMSebastiaan
05/17/2024, 9:30 AMcs
private static string GetTiming(string timing)
{
return Environment.MachineName == "FLASH" || Environment.MachineName == "KILLERQUEEN" || Environment.MachineName == "RADIOGAGA" ? Cron.Never() : timing;
}
so based on machine name I return Cron.Never()
or use the timing specified in RecurringJob.AddOrUpdate
- but it requires the machine name to be always predictable.