Skip to content

Commit a2c0ad6

Browse files
authored
file upload cleanup cronjob: (#2790)
- use larger resources (saw an OOM on one job) - don't keep successful job pods (nothing to see in logs except ids of deleted files, if any)
1 parent 8db0e44 commit a2c0ad6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

backend/btrixcloud/crawlmanager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ async def ensure_cleanup_seed_file_cron_job_exists(self):
250250
"backend_image": os.environ.get("BACKEND_IMAGE", ""),
251251
"pull_policy": os.environ.get("BACKEND_IMAGE_PULL_POLICY", ""),
252252
"schedule": job_schedule,
253+
"larger_resources": True,
253254
}
254255

255256
data = self.templates.env.get_template("background_cron_job.yaml").render(

chart/app-templates/background_cron_job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88

99
spec:
1010
concurrencyPolicy: Forbid
11-
successfulJobsHistoryLimit: 2
11+
successfulJobsHistoryLimit: 0
1212
failedJobsHistoryLimit: 2
1313

1414
schedule: "{{ schedule }}"

0 commit comments

Comments
 (0)