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)
This commit is contained in:
		
							parent
							
								
									8db0e44843
								
							
						
					
					
						commit
						a2c0ad665e
					
				| @ -250,6 +250,7 @@ class CrawlManager(K8sAPI): | |||||||
|             "backend_image": os.environ.get("BACKEND_IMAGE", ""), |             "backend_image": os.environ.get("BACKEND_IMAGE", ""), | ||||||
|             "pull_policy": os.environ.get("BACKEND_IMAGE_PULL_POLICY", ""), |             "pull_policy": os.environ.get("BACKEND_IMAGE_PULL_POLICY", ""), | ||||||
|             "schedule": job_schedule, |             "schedule": job_schedule, | ||||||
|  |             "larger_resources": True, | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         data = self.templates.env.get_template("background_cron_job.yaml").render( |         data = self.templates.env.get_template("background_cron_job.yaml").render( | ||||||
|  | |||||||
| @ -8,7 +8,7 @@ metadata: | |||||||
| 
 | 
 | ||||||
| spec: | spec: | ||||||
|   concurrencyPolicy: Forbid |   concurrencyPolicy: Forbid | ||||||
|   successfulJobsHistoryLimit: 2 |   successfulJobsHistoryLimit: 0 | ||||||
|   failedJobsHistoryLimit: 2 |   failedJobsHistoryLimit: 2 | ||||||
| 
 | 
 | ||||||
|   schedule: "{{ schedule }}" |   schedule: "{{ schedule }}" | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user