Marie Hénaff
02/29/2024, 1:27 PMScout
02/29/2024, 1:27 PMmax_retries
configuration for automatic run re-execution. The error indicates that max_retries
is None
, which suggests that it might not be set correctly in your configuration. The documentation provides guidance on how to enable run retries and configure the maximum number of retries. To enable run retries, you should add the following to your `dagster.yaml`: yaml run_retries: enabled: true max_retries: 3 # Sets a default for all jobs. 0 if not set
This configuration starts a new daemon that polls the event log for run failure events and retries them according to the specified max_retries
. If max_retries
is not set, it defaults to 0, which means no retries will be attempted. You can also configure retries using tags either on Job definitions or in the Dagster UI Launchpad. Here's an example of how to set it on a job definition: python from dagster import job @job(tags={"dagster/max_retries": 3}) def sample_job(): pass
Please ensure that your dagster.yaml
includes the run_retries
configuration with a valid max_retries
value, and if you are using job tags to configure retries, make sure they are set correctly. If you have already configured max_retries
and are still encountering this issue, it might be a bug or an edge case not covered by the documentation. In such a case, you may want to check for any related issues on the Dagster GitHub repository or reach out to the Dagster community for further assistance.