<@U04S8PLJWMT> how do I modify my values.yaml for ...
# ask-ai
o
@kapa.ai how do I modify my values.yaml for abctl so it only does 1 retry by default instead of 3 if a connector fails? It seems related to worker env vars
k
To change the default number of retries for sync jobs in Airbyte (including when using abctl), you need to set the relevant environment variable in your
values.yaml
file. The variable that controls the maximum number of retries for complete failures is:
Copy code
SYNC_JOB_RETRIES_COMPLETE_FAILURES_MAX_TOTAL
By default, Airbyte allows up to 10 retries for jobs where no data was synchronized, but you can set this to
1
to allow only one retry. Here’s how you can modify your `values.yaml`:
Copy code
yaml worker:   env_vars:     SYNC_JOB_RETRIES_COMPLETE_FAILURES_MAX_TOTAL: 1
This will ensure that if a connector fails, Airbyte will only retry it once before marking the job as failed. If you want to also limit the number of successive failures, you can set:
Copy code
yaml worker:   env_vars:     SYNC_JOB_RETRIES_COMPLETE_FAILURES_MAX_TOTAL: 1     SYNC_JOB_RETRIES_COMPLETE_FAILURES_MAX_SUCCESSIVE: 1
Make sure to apply your changes and redeploy Airbyte for them to take effect. These settings are documented in the Airbyte operator guides and are the recommended way to control job retry behavior via environment variables in Helm deployments [Configuring Airbyte - Jobs](https://docs.airbyte.com/platform/next/operator-guides/configuring-airbyte#jobs). If you are using a different deployment method or version, the variable names and configuration location may differ, but the above applies to standard Helm-based deployments.