Skip to content

Commit

Permalink
upda backfill to have pod ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
coutug committed Aug 26, 2024
1 parent a999f9c commit a8bf1bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/substreams-sink-sql-backfill/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.4
version: 0.1.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions charts/substreams-sink-sql-backfill/templates/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ spec:
ttlStrategy:
{{- .Values.ttlStrategy | toYaml | nindent 4}}
{{- end }}
{{- if .Values.podGarbageCollection }}
podGC:
{{- .Values.podGarbageCollection | toYaml | nindent 4}}
{{- end }}
{{- if .Values.nodeAffinity }}
podSpecPatch: |
affinity:
Expand Down
13 changes: 10 additions & 3 deletions charts/substreams-sink-sql-backfill/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ imagePullSecret: ghcr-cred
# Make sure to use the service account that match with argo workflow server
serviceAccount: argo-workflows-workflow

# Time to live for containers once the job is completed
# Time to live for workflow once it's finished
ttlStrategy:
secondsAfterCompletion: 3600
secondsAfterCompletion: 600
secondsAfterFailure: 7200
secondsAfterSuccess: 3600
secondsAfterSuccess: 60

# Time to live for pods
# https://github.com/argoproj/argo-workflows/blob/main/examples/pod-gc-strategy.yaml
podGarbageCollection:
strategy: OnPodCompletion
deleteDelayDuration: 30s


# Indicate the number of parallel jobs and the resources used by a job
# This way, you can limit the total resources used with <parallelism>*<resource>
Expand Down

0 comments on commit a8bf1bc

Please sign in to comment.