Is there a way to perform retries with prefect-she...
# ask-community
a
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
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
Awesome thanks