https://dagster.io/ logo
#ask-community
Title
# ask-community
z

Zach

05/03/2022, 4:45 PM
Does anyone have an example of providing an op retry policy on an op invocation? the docs mention this pattern but I haven't been able to find any examples of it, and when I try to just feed in the retry policy to the op invocation I get an error expecting retry_policy to be an input from an upstream op (which is kinda what I thought would happen) - example:
Copy code
@graph
def trigger_graph():
    job_args = setup_job_args()
    run_now(job_args, retry_policy=RetryPolicy())
z

Zach

05/03/2022, 4:50 PM
lol perfect, thanks a bunch!
p

prha

05/03/2022, 4:50 PM
Yes, we should point to
with_retry_policy
in the docs
@Dagster Bot docs add examples of
with_retry_policy
for specifying retries on op invocations
d

Dagster Bot

05/03/2022, 4:51 PM