Skip to content

Commit e0a3b7c

Browse files
committed
chore(sync): change the synchronizer run order
They can run in any order but GitHub takes so long it should be run last so people can "enjoy" the logs before it to consume time.
1 parent 8403fa6 commit e0a3b7c

File tree

1 file changed

+6
-4
lines changed
  • __meta/synchronizer/synchronizer

1 file changed

+6
-4
lines changed

__meta/synchronizer/synchronizer/main.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@
1919

2020
load_dotenv()
2121

22-
# Mapping of service names to their corresponding classes
22+
# Mapping of service names to their corresponding classes.
23+
# The services will be executed in the order they are listed here.
24+
# THere is no dependency between the services unless explicitly stated here.
2325
SERVICE_CLASSES: dict[str, type[AbstractSynchronizer]] = {
24-
"github": GithubSynchronizer,
2526
"keycloak": KeycloakSynchronizer,
2627
"vault": VaultSynchronizer,
28+
"secrets": SecretsSynchronizer, # Run after the keycloak clients are created.
2729
"slack": SlackSynchronizer,
28-
"secrets": SecretsSynchronizer,
2930
"google_drive": GoogleDriveSynchronizer,
30-
"codeowners": CodeownersSynchronizer,
3131
"leadership": LeadershipSynchronizer,
32+
"codeowners": CodeownersSynchronizer,
33+
"github": GithubSynchronizer, # Run last since it takes the longest time.
3234
}
3335

3436

0 commit comments

Comments
 (0)