EasyCronJob icon indicating copy to clipboard operation
EasyCronJob copied to clipboard

Handle long delays in ScheduleJob by chaining timers

Open Maximebaker opened this issue 1 year ago • 2 comments

  • Updated EasyCronJob.Abstractions.CronJobService.ScheduleJob to manage big delays by splitting them into smaller chunks with timers.
  • Each timer runs up to int.MaxValue milliseconds, then starts another until the total delay is covered.
  • This approach prevents overflow issues and keeps the process non-blocking.
  • The main task runs smoothly after all the timer chunks finish, keeping everything responsive.

Maximebaker avatar Aug 21 '24 15:08 Maximebaker

That will fix this bug #22 !

Maximebaker avatar Aug 21 '24 15:08 Maximebaker

When this can be fixed?

Bakrsk avatar Oct 10 '24 11:10 Bakrsk