feat: adds block_external to safe jobs list
This commit is contained in:
parent
4693e994ba
commit
73439a8121
1 changed files with 7 additions and 1 deletions
|
@ -153,7 +153,13 @@ def run_job(job_cls: Type[BaseAutomation], *,
|
|||
else:
|
||||
automation.state = AutomationState.ERROR
|
||||
safe_jobs = [
|
||||
"proxy_cloudfront", "static_aws", "list_http_post", "list_s3", "list_github", "list_gitlab"
|
||||
"proxy_cloudfront",
|
||||
"static_aws",
|
||||
"list_http_post",
|
||||
"list_s3",
|
||||
"list_github",
|
||||
"list_gitlab",
|
||||
"block_external"
|
||||
]
|
||||
if job.short_name not in safe_jobs:
|
||||
automation.enabled = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue