HangfireIO/Hangfire
GitHub で見るAdd proper support for time intervals in recurring jobs
Open
#1,054 opened on 2017年11月10日
a: corehelp wantedt: feature-request
説明
Since Cron.XXXInterval methods should be deprecated as per #1041, a question arises – how to handle intervals then? One could use ScheduledState to create a job and re-schedule after each completion. But this is not an obvious option, and could lead to much more non-obvious consequences like 5 retries or an original job caused 5 scheduled jobs to be created instead of 1 with a simple implementation.
Instead, recurring jobs should be modified to support the following recurring schemes (yes, there will be no support for seconds yet). This is just to handle simple cases, with a simple implementation. Since recurring job is a has, we could save backward compatibility without any problems.
- Every X minutes
- Every X hours at MM minutes
- Every X days at HH:MM
- Every X months at DD day at HH:MM