Hello all. Is it possible to configure a delay whe...
# ask-community
a
Hello all. Is it possible to configure a delay when using Run Retries https://docs.dagster.io/deployment/run-retries?
🤖 1
v
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
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
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
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})