Skip to content

Commit

Permalink
Forbid concurrent runs of pod pruner
Browse files Browse the repository at this point in the history
This is a solution to a problem when a pod is stuck. Pod pruner is not
able to remove it and won't finish. After some time, there will be
multiple pod pruners running, all unable to finish. This will result in
using up all the cronjobs resources

Signed-off-by: mkosiarc <mkosiarc@redhat.com>
  • Loading branch information
mkosiarc committed Jun 7, 2023
1 parent 4b42fbc commit eef22e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/configure_namespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
name: "{{ item.name }}"
spec:
schedule: "{{ pod_pruning_schedule }}"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: "{{ osbs_generic_cronjob_successful_jobs }}"
failedJobsHistoryLimit: "{{ osbs_generic_cronjob_failed_jobs }}"
jobTemplate:
Expand Down

0 comments on commit eef22e6

Please sign in to comment.