With scheduled tasks, it seems to be hard-coded that if your task fails, it get re-tried after 1, 2, 4, 8, 16, ... minutes.
What if that is not the correct logic for your task? Has anyone else hit this, and how did you handle it?
I can see three options:
- Pretend that your task succeeded (e.g. manually catch the exception). This way you lose the standard admin UI showing you what has failed.
- Fix the core scheduled tasks system, so there is a propery way to configure the retry schedule when necessary.
- Hack it: Override get_fail_delay for your task to return half the failure delay you want.