Skip to content

Commit

Permalink
Merge pull request #71 from aabf/Add-control-to-clean-cron-job
Browse files Browse the repository at this point in the history
Allow users to define the schedule for the cleanup job
  • Loading branch information
wangxiaoyou1993 authored Jan 28, 2025
2 parents b0da0bd + 203a0d1 commit d405b96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/mageai/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ 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.2.9
version: 0.2.10
2 changes: 1 addition & 1 deletion charts/mageai/templates/cleanup-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: CronJob
metadata:
name: {{ include "mageai.fullname" . }}-cleanup-job
spec:
schedule: "0 * * * *" # Runs every hour
schedule: {{ .Values.cleanupJob.schedule_cron | default "0 * * * *" | quote }}
jobTemplate:
spec:
template:
Expand Down
1 change: 1 addition & 0 deletions charts/mageai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,4 @@ cleanupJob:
enabled: false
clean_variable_cli_args: ""
clean_log_cli_args: ""
schedule_cron: "0 * * * *" # Runs every hour

0 comments on commit d405b96

Please sign in to comment.