From 819e78e0d6ca1b9e513efcdabd012db4b34a5b96 Mon Sep 17 00:00:00 2001 From: Ana Custura Date: Mon, 19 Feb 2024 11:38:05 +0000 Subject: [PATCH] Enable safe jobs --- app/cli/automate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/cli/automate.py b/app/cli/automate.py index bd22db6..6c01499 100644 --- a/app/cli/automate.py +++ b/app/cli/automate.py @@ -152,7 +152,11 @@ def run_job(job_cls: Type[BaseAutomation], *, shutil.rmtree(working_dir) else: automation.state = AutomationState.ERROR - automation.enabled = False + safe_jobs = [ + "proxy_cloudfront", "static_aws", "list_http_post", "list_s3", "list_github", "list_gitlab" + ] + if job.short_name not in safe_jobs: + automation.enabled = False automation.next_run = None log = AutomationLogs() log.automation_id = automation.id