https://prefect.io logo
a

Andrew Richards

08/05/2022, 7:37 PM
Is there a way to perform retries with prefect-shell tasks? I'm using prefect version 2.0.2 and prefect-shell version 0.1.1. Supplying the
retries
parameter to the flow itself doesn't appear to work when I deliberately supply a bad shell command.
1
a

alex

08/05/2022, 7:39 PM
Hey @Andrew Richards! You can specify retries on previously defined tasks with the
.with_options()
method. Here’s link to the documentation: https://docs.prefect.io/api-ref/prefect/tasks/#prefect.tasks.Task.with_options
a

Andrew Richards

08/05/2022, 7:39 PM
Awesome thanks