HI <@U04S8PLJWMT> how and where to implement SYNC...
# ask-ai
v
HI @kapa.ai how and where to implement SYNC_JOB_MAX_ATTEMPTS variable on airbyte helm chart , is it to worker pod?
k
To set the
SYNC_JOB_MAX_ATTEMPTS
variable in an Airbyte Helm chart deployment, you should configure it as an environment variable for the worker pod. This variable controls the number of attempts a sync job will make before failing (though note it is considered legacy and may be superseded by more granular retry settings in newer Airbyte versions) [Configuring Airbyte - Jobs](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#jobs). How to set it in the Helm chart: For Helm chart V2,
SYNC_JOB_MAX_ATTEMPTS
does not have a direct mapping in the
values.yaml
file, but you can set it using the
extraEnvs
(or
env_vars
in some chart versions) for the worker component. For example:
Copy code
yaml worker:   extraEnvs:     - name: SYNC_JOB_MAX_ATTEMPTS       value: "5"
Or, if your chart uses `env_vars`:
Copy code
yaml worker:   env_vars:     SYNC_JOB_MAX_ATTEMPTS: "5"
This will inject the environment variable into the worker pod, which is where it is required [Support the MAX_*_WORKERS environment variables in the Helm chart](https://github.com/airbytehq/airbyte/issues/29547). Summary: - Set
SYNC_JOB_MAX_ATTEMPTS
as an environment variable for the worker pod in your Helm chart. - Use
extraEnvs
or
env_vars
under the
worker
section in your
values.yaml
file, depending on your chart version. If you are using Helm chart V2, refer to the official documentation for the most up-to-date mapping and usage [Update your values.yaml file](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file).