File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ const ONE_MINUTE_IN_SECOND = 60
1212const GATE_DURATION = 30 * ONE_MINUTE_IN_SECOND
1313const GATE_INTERVAL = ONE_MINUTE_IN_SECOND
1414
15+ // Major DCs are the ones that are deployed last.
16+ // They have their own step jobs in `deploy-manual.yml` and `deploy-auto.yml`.
17+ const MAJOR_DCS = [ 'root' , 'us1' , 'eu1' ]
18+
19+ // Minor DCs are all the DCs from `siteByDatacenter` that are not in `MAJOR_DCS`.
20+ function getAllMinorDcs ( ) : string [ ] {
21+ return Object . keys ( siteByDatacenter ) . filter ( ( dc ) => ! MAJOR_DCS . includes ( dc ) )
22+ }
23+
1524const {
1625 values : { 'check-monitors' : checkMonitors } ,
1726 positionals,
@@ -54,12 +63,3 @@ async function gateMonitors(uploadPath: string): Promise<void> {
5463 }
5564 printLog ( ) // new line
5665}
57-
58- // Major DCs are the ones that are deployed last.
59- // They have their own step jobs in `deploy-manual.yml` and `deploy-auto.yml`.
60- const MAJOR_DCS = [ 'root' , 'us1' , 'eu1' ]
61-
62- // Minor DCs are all the DCs from `siteByDatacenter` that are not in `MAJOR_DCS`.
63- function getAllMinorDcs ( ) : string [ ] {
64- return Object . keys ( siteByDatacenter ) . filter ( ( dc ) => ! MAJOR_DCS . includes ( dc ) )
65- }
You can’t perform that action at this time.
0 commit comments