Scheduled Task retry failed job
I want to make it so that if there’s an error when running the delayed task, it gets delayed according to a backoff strategy. However, in the current code of the library, this isn’t possible because of code in run method of corresponding line that blocks re-trying failed jobs:
upd. maybe not that line, I don’t know exactly what the methods of
ScheduledTaskHandler
. Is there any way to fix this?
Result
doGitHub
plugins/packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts at...
Plugins for the Sapphire Framework. Contribute to sapphiredev/plugins development by creating an account on GitHub.
5 Replies
for temp use i changed this code but prob need something better(?)
Uhm I don't know how to best fix this but if you can suggest a change through PR to the library that would be much appreciated because I think one of my bots could really use it as well.
GitHub
fix(ScheduledTaskHandler): Throw task error on run if present by De...
Required for working backoff strategy;
Probably not the best way to do it, but it works
left a review comment @AbyssKitty
Solution
merged. Will release when CI is done then post to #Announcements