Skip to content
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

Add Retry ability for Failed Tasks #1405

Open
Badgerati opened this issue Oct 4, 2024 · 0 comments
Open

Add Retry ability for Failed Tasks #1405

Badgerati opened this issue Oct 4, 2024 · 0 comments

Comments

@Badgerati
Copy link
Owner

Describe the Change

Adding a retry ability for Failed Tasks would help with tasks that do have legitimate intermittent failures, and by simply retrying the Task it succeeds - such as web scraping, etc.

  • Add a -KeepFailed switch to Add-PodeTask, which will prevent the housekeeper from closing failed Task processes.
  • A new Restart-PodeTaskProcess could be added, which will allow the retrying of failed Task processes - this will restart a Task Process by ID, retrieved via Get-PodeTaskProcess or from the object returned via Invoke-PodeTask
  • Add a -MaxRetryCount parameter on Add-PodeTask - if the Task process is retries X times then it's closed
  • Add an -AutoRetryFailed switch to Add-PodeTask, to automatically retry failed Task processes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant