Cronos icon indicating copy to clipboard operation
Cronos copied to clipboard

invalid value for system.timers.timer

Open arun069 opened this issue 3 years ago • 1 comments

hi, I am getting error when I am setting CronExpression for month.

Error Message: Invalid value '2376995117.7807' for parameter 'interval'.'

// Cron setting services.AddCronJob<WebhookTableJob>(c => { c.TimeZoneInfo = TimeZoneInfo.Local; c.CronExpression = @"0 0 1 * *"; });

when google for this issue I found that System.Timers.Timer only store maximum 25 day time value

arun069 avatar Jun 03 '22 06:06 arun069

Please note that the Cronos package doesn't contain the AddCronJob method and doesn't have any integration with System.Timers.Timer class, so it comes from another library and this issues doesn't relate to Cronos.

odinserj avatar Jun 03 '22 06:06 odinserj

Looks like you are following this pattern https://github.com/dotnet-labs/ServiceWorkerCronJob

Check the existing issue. https://github.com/dotnet-labs/ServiceWorkerCronJob/issues/14

mattheys avatar Dec 09 '22 17:12 mattheys