https://dagster.io/ logo
#dagster-support
Title
# dagster-support
a

Ashlee Tiberio

09/08/2022, 1:37 PM
Hi there, a little new to Dagster. My team is looking for a method to configure retries for schedules only. We do not want to configure the retry on the job level because we do not want to retry every job that we run, and we also do not want to retry on the op level. Is there any way to configure run retries on schedules? Or a way to configure job-level retries conditionally so they only retry for schedules? We have tried configuring retries on schedules similarly to the way retry configuration is set up for jobs in Dagster documentation with tags, but it seems the
dagster/max_retries
tag is reserved for jobs.
d

daniel

09/08/2022, 2:30 PM
Hi Ashlee - could you set the dagster/max_retries tag in the RunRequest returned in the schedule? Something like this:
Copy code
@schedule(job=configurable_job, cron_schedule="0 0 * * *")
def configurable_job_schedule(context: ScheduleEvaluationContext):
    return RunRequest(
        run_key=None,
        run_config={},
        tags={"dagster/max_retries": 2},
    )
a

Ashlee Tiberio

09/09/2022, 1:47 PM
Thank you daniel! This helped immensely!
2 Views