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 = {
|
jobs = {
|
||||||
x.short_name: x # type: ignore[attr-defined]
|
x.short_name: x # type: ignore[attr-defined]
|
||||||
for x in [
|
for x in [
|
||||||
AlarmEotkAwsAutomation,
|
# Check for blocked resources first
|
||||||
AlarmProxyAzureCdnAutomation,
|
|
||||||
AlarmProxyCloudfrontAutomation,
|
|
||||||
AlarmProxyHTTPStatusAutomation,
|
|
||||||
AlarmSmartAwsAutomation,
|
|
||||||
BlockBridgeDnscAutomation,
|
BlockBridgeDnscAutomation,
|
||||||
BlockBridgeGitHubAutomation,
|
BlockBridgeGitHubAutomation,
|
||||||
BlockBridgeGitlabAutomation,
|
BlockBridgeGitlabAutomation,
|
||||||
|
@ -54,20 +50,33 @@ jobs = {
|
||||||
BlockExternalAutomation,
|
BlockExternalAutomation,
|
||||||
BlockOONIAutomation,
|
BlockOONIAutomation,
|
||||||
BlockRoskomsvobodaAutomation,
|
BlockRoskomsvobodaAutomation,
|
||||||
|
|
||||||
|
# Create new resources
|
||||||
|
BridgeMetaAutomation,
|
||||||
|
ProxyMetaAutomation,
|
||||||
|
|
||||||
|
# Terraform
|
||||||
BridgeAWSAutomation,
|
BridgeAWSAutomation,
|
||||||
BridgeGandiAutomation,
|
BridgeGandiAutomation,
|
||||||
BridgeHcloudAutomation,
|
BridgeHcloudAutomation,
|
||||||
BridgeMetaAutomation,
|
|
||||||
BridgeOvhAutomation,
|
BridgeOvhAutomation,
|
||||||
EotkAWSAutomation,
|
EotkAWSAutomation,
|
||||||
|
ProxyAzureCdnAutomation,
|
||||||
|
ProxyCloudfrontAutomation,
|
||||||
|
ProxyFastlyAutomation,
|
||||||
|
|
||||||
|
# Import alarms
|
||||||
|
AlarmEotkAwsAutomation,
|
||||||
|
AlarmProxyAzureCdnAutomation,
|
||||||
|
AlarmProxyCloudfrontAutomation,
|
||||||
|
AlarmProxyHTTPStatusAutomation,
|
||||||
|
AlarmSmartAwsAutomation,
|
||||||
|
|
||||||
|
# Update lists
|
||||||
ListGithubAutomation,
|
ListGithubAutomation,
|
||||||
ListGitlabAutomation,
|
ListGitlabAutomation,
|
||||||
ListHttpPostAutomation,
|
ListHttpPostAutomation,
|
||||||
ListS3Automation,
|
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