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

Archie Kennedy

07/03/2023, 11:27 AM
Hello all. Is it possible to configure a delay when using Run Retries https://docs.dagster.io/deployment/run-retries?
🤖 1
v

Varun P

07/03/2023, 12:37 PM
Yes, you can have a custom retry policy and add backoffs using using the
RetryPolicy
.
Copy code
custom_retry = RetryPolicy(
        max_retries=2,
        delay=1800,
        backoff=Backoff.EXPONENTIAL,
        jitter=Jitter.PLUS_MINUS,
    )
@op(retry_policy=custom_retry)
def my_op(context,cred_id):
    pass
a

Archie Kennedy

07/03/2023, 12:50 PM
I want to do that for run retries, not op retries. Is that possible? 🙂
ie
Copy code
@job(tags={"dagster/max_retries": 3})
def sample_job():
    pass
v

Varun P

07/03/2023, 12:52 PM
Copy code
@job(tags={"dagster/max_retries": 3,"dagster/delay":1800,"dagster/backoff: Backoff.Exponential})
def sample_job():
    pass
Have you tried if this works?
a

Archie Kennedy

07/03/2023, 12:53 PM
I will try now.. please hold
run retries are not supported with sqlite 😕 I'll have try this later
No such luck, I think this functionality is missing.
As far as I'm aware only this tag does anything:
Copy code
@job(tags={"dagster/max_retries": 3})
3 Views