a3bfe9f374
Full initial sync has 500k+ rows across all tables and exceeded the 30-minute activeDeadlineSeconds. Bump both the k8s job deadline and the kubectl wait timeout to 7200s (2 hours).
34 lines
850 B
YAML
34 lines
850 B
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: dalpuri-sync-RELEASE_TAG
|
|
namespace: optima
|
|
labels:
|
|
app: dalpuri-sync
|
|
spec:
|
|
backoffLimit: 0
|
|
ttlSecondsAfterFinished: 86400
|
|
activeDeadlineSeconds: 7200
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dalpuri-sync
|
|
spec:
|
|
containers:
|
|
- name: sync
|
|
image: ghcr.io/horizonstacksoftware/optima-dalpuri-sync:RELEASE_TAG
|
|
env:
|
|
- name: CW_DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: api-env-secret
|
|
key: CW_DATABASE_URL
|
|
- name: API_DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: api-env-secret
|
|
key: DATABASE_URL
|
|
restartPolicy: Never
|
|
imagePullSecrets:
|
|
- name: github-container-registry
|