Search code examples
c#.net-corecronbackgroundworker

.NET Core Worker service does not have CRON


I'm working with .net core 3.1 worker service The worker contains cron job with this Nuget package CronScheduler.Extensions v3.0.0 I completed project in my development env.(everything OK and No error) and im going to serve in production and install the worker with sc.exe when i start the worker service something went wrong and i have a following error from the event viewer log

Category: CronScheduler.Extensions.Internal.SchedulerRegistration EventId: 101

[Job][WasJob] does not have CRON: . Task will not run.

How can i fix this problem any idea? Thanks for answers.


Solution

  • It seems there is an issue with settings. Check how do you configure SchedulerOptions. This error happens when the library can't find SchedulerOptions.CronSchedule.