3

I'm setting up a job to run every Monday at 10 am:

registry.Schedule(() => new MyJob()).ToRunEvery(0).Weeks().On(DayOfWeek.Monday).At(10,0);

However he apparently runs the first time and doesn't run anymore.

Am I doing the job setup correctly or is there a problem with this functionality? Can you help me?

rene
  • 41,474
  • 78
  • 114
  • 152
  • 1
    Your code looks pretty much like the code in the documentation except their job implements `IJob`. What does `MyJob` look like? Does it do all its work when instantiated? – Hans Kilian Dec 01 '20 at 14:26
  • It abstracts with a generic name just so as not to expose the functionality due to the customer. I am currently testing a script on the console in order to validate the scheduling recurrences. When I use Days() or Hours() ... the calls work normally. – Elizabeth Carvalho Dec 01 '20 at 14:47

0 Answers0