feat(cli): order automation jobs most efficiently
This commit is contained in:
parent
c6494f0145
commit
ee60844b7c
3 changed files with 19 additions and 10 deletions
|
@ -42,11 +42,7 @@ from app.terraform.proxy.fastly import ProxyFastlyAutomation
|
|||
jobs = {
|
||||
x.short_name: x # type: ignore[attr-defined]
|
||||
for x in [
|
||||
AlarmEotkAwsAutomation,
|
||||
AlarmProxyAzureCdnAutomation,
|
||||
AlarmProxyCloudfrontAutomation,
|
||||
AlarmProxyHTTPStatusAutomation,
|
||||
AlarmSmartAwsAutomation,
|
||||
# Check for blocked resources first
|
||||
BlockBridgeDnscAutomation,
|
||||
BlockBridgeGitHubAutomation,
|
||||
BlockBridgeGitlabAutomation,
|
||||
|
@ -54,20 +50,33 @@ jobs = {
|
|||
BlockExternalAutomation,
|
||||
BlockOONIAutomation,
|
||||
BlockRoskomsvobodaAutomation,
|
||||
|
||||
# Create new resources
|
||||
BridgeMetaAutomation,
|
||||
ProxyMetaAutomation,
|
||||
|
||||
# Terraform
|
||||
BridgeAWSAutomation,
|
||||
BridgeGandiAutomation,
|
||||
BridgeHcloudAutomation,
|
||||
BridgeMetaAutomation,
|
||||
BridgeOvhAutomation,
|
||||
EotkAWSAutomation,
|
||||
ProxyAzureCdnAutomation,
|
||||
ProxyCloudfrontAutomation,
|
||||
ProxyFastlyAutomation,
|
||||
|
||||
# Import alarms
|
||||
AlarmEotkAwsAutomation,
|
||||
AlarmProxyAzureCdnAutomation,
|
||||
AlarmProxyCloudfrontAutomation,
|
||||
AlarmProxyHTTPStatusAutomation,
|
||||
AlarmSmartAwsAutomation,
|
||||
|
||||
# Update lists
|
||||
ListGithubAutomation,
|
||||
ListGitlabAutomation,
|
||||
ListHttpPostAutomation,
|
||||
ListS3Automation,
|
||||
ProxyAzureCdnAutomation,
|
||||
ProxyCloudfrontAutomation,
|
||||
ProxyFastlyAutomation,
|
||||
ProxyMetaAutomation
|
||||
]
|
||||
}
|
||||
|
||||
|
|
0
app/models/cloud.py
Normal file
0
app/models/cloud.py
Normal file
0
app/portal/cloud.py
Normal file
0
app/portal/cloud.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue