This is not a bug report, merely confirmation of a feature I needed, that was to alter the schedule on a job once it has started, initialised and run once.
I didn't see it in the doco, but I tried calling .ToRunEvery() on the instance retrieved with GetSchedule and it worked.
It works from the run AFTER the run in which you make the change. This sort of makes sense.
I wanted to run a job once fairly quickly to get it initialised, then more slowly. I could do init in the job constructor but that runs too soon, when the job is registered, not when it first runs.
This is not a bug report, merely confirmation of a feature I needed, that was to alter the schedule on a job once it has started, initialised and run once.
I didn't see it in the doco, but I tried calling .ToRunEvery() on the instance retrieved with GetSchedule and it worked.
It works from the run AFTER the run in which you make the change. This sort of makes sense.
I wanted to run a job once fairly quickly to get it initialised, then more slowly. I could do init in the job constructor but that runs too soon, when the job is registered, not when it first runs.