-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--all-failed
flag to restart all failed tasks.
#79
Comments
Hi. I like the idea of an I'm not sure about the auto-retry config, though. |
--all-failed
flag to restart all failed tasks.
--all-failed
flag to restart all failed tasks.--all-failed
flag to restart all failed tasks.
On second thought, a --all-failed flag isn't really something that should be used often. In most cases, retries should be handled by the called program. If all programs break due to a single prerequisite that hasn't been fulfilled, the user should probably use the Closing for now until somebody comes up with a good use case. |
I would love it if pueue had the ability to retry failed tasks, kind of like what https://github.com/rq/rq does with the My particular use case, not that it matters, is doing sends of (thousands of) DICOM medical images from one machine to another, where the receiving machine is quite often unavailable. I want to be able to say "if the image doesn't send, wait 5 minutes ... 10 ... 30 .. 90 .. 720 .. 1440 ... then give up", or something like that. |
Without this functionality I essentially have to write a scheduler-scheduler that runs |
Hm. A program/command that is designed to fail seems like an anti-pattern to me. Pueue's design goal is to be a commandline helper, which takes commands from your commandline that would otherwise run too long in your current shell. If you expect a shell command to continously fail, until it succeeds at least once, you can simply do this: That's it. That's a command that will indefinitely call itself, until it finally succeeds. |
I would like to see the restart all failed task function integrate into pueue itself. In my use case is that I have a downloader for a particular website, and it do not have a retry function. I add a bunch of tasks for each download. Some tasks failed so I need to check the status manually and restart. I would like to see it integrate as a function in pueue. |
I see how a |
Hi @Nukesor,
I have many download tasks,few of them failed with exit code 1,so need to restart each of them by hand.
Can we enhance the restart features by this:
1,add command 'pueue restart all',that let user restart all the failed tasks.
2,add autoretry option in configure file.For example,auto retry failed task by X=10 times,then give up.But user can use 'pueue restart all' to restart them again,the autoretry count is reset.
[default]
autoretry = false //default is false
autoretrytimes = 10 //work when autoretry = true
Great thanks.
The text was updated successfully, but these errors were encountered: