Skip to content

Commit e3c704c

Browse files
authored
Merge pull request #678 from CodeNow/hotfix-cron
Hotfix cron jobs so we cleanup properly and don't try to run concurrently
2 parents 7cbb84e + a7d02f4 commit e3c704c

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

ansible/k8/delta/swarm-cloudwatch-reporter/crons/swarm-cloudwatch-reporter

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
name: swarm-cloudwatch-reporter
55
spec:
66
schedule: "*/5 * * * *"
7+
concurrencyPolicy: Replace
78
jobTemplate:
89
spec:
910
template:

ansible/k8/gamma/swarm-cloudwatch-reporter/crons/swarm-cloudwatch-reporter

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
name: swarm-cloudwatch-reporter
55
spec:
66
schedule: "*/5 * * * *"
7+
concurrencyPolicy: Replace
78
jobTemplate:
89
spec:
910
template:

ansible/roles/swarm-cloudwatch-reporter/templates/swarm-cron.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
name: {{ name }}
55
spec:
66
schedule: "{{ cron_scedule }}"
7+
concurrencyPolicy: Replace
78
jobTemplate:
89
spec:
910
template:

0 commit comments

Comments
 (0)