Enable safe jobs

This commit is contained in:
Ana Custura 2024-02-19 11:38:05 +00:00
parent d754f0b2bc
commit 819e78e0d6

View file

@ -152,6 +152,10 @@ def run_job(job_cls: Type[BaseAutomation], *,
shutil.rmtree(working_dir)
else:
automation.state = AutomationState.ERROR
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()