Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enable flag to cron jobs #468

Merged
merged 2 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions galaxy/templates/cronjob-maintenance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
labels:
{{- include "galaxy.labels" $ | nindent 4 }}
spec:
{{- if $cronjob.enabled }}
schedule: {{ $cronjob.schedule | quote }}
{{- else }}
ksuderman marked this conversation as resolved.
Show resolved Hide resolved
schedule: "0 0 30 2 *"
{{- end }}
jobTemplate:
spec:
template:
Expand Down
2 changes: 2 additions & 0 deletions galaxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ cronJobs:
#- Runs the maintenance.sh script to purge items in the Galaxy database that
#- have been flagged as deleted.
maintenance:
enabled: true
schedule: "5 2 * * *"
extraSettings:
#- Purge items older than this.
Expand All @@ -287,6 +288,7 @@ cronJobs:
- "{{ tpl .Values.cronJobs.maintenance.extraSettings.days $ }}"
#- Remove files from the tmp directory that are older than the allowable wall time for a job
tmpdir:
enabled: true
schedule: "15 2 * * *"
extraSettings:
lastModified: '{{ index .Values "configs" "job_conf.yml" "runners" "k8s" "k8s_walltime_limit" | default 604800 }}'
Expand Down
Loading