feat(cli): order automation jobs most efficiently

This commit is contained in:
Iain Learmonth 2023-02-26 12:11:30 +00:00
parent c6494f0145
commit ee60844b7c
3 changed files with 19 additions and 10 deletions

View file

@ -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
]
}