EasyCronJob
EasyCronJob copied to clipboard
Handle long delays in ScheduleJob by chaining timers
- Updated EasyCronJob.Abstractions.CronJobService.ScheduleJob to manage big delays by splitting them into smaller chunks with timers.
- Each timer runs up to
int.MaxValuemilliseconds, 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.
That will fix this bug #22 !
When this can be fixed?