Skip to content

Commit 8d46814

Browse files
authored
fix: Adjust DAG schedule (GoogleCloudPlatform#1091)
Test team identified DAGs that are using the same cluster, and their schedule time are too close to each other, adjust the schedule could reduce the resource conflict and stabilizes the cluster/DAG.
1 parent 55766b8 commit 8d46814

16 files changed

Lines changed: 16 additions & 16 deletions

dags/multipod/maxtext_checkpointing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from dags.multipod.configs.common import SetupMode
2525

2626
# Run once a day at 10 am UTC (2 am PST)
27-
SCHEDULED_TIME = "45 5 * * *" if composer_env.is_prod_env() else None
27+
SCHEDULED_TIME = "15 6 * * *" if composer_env.is_prod_env() else None
2828

2929
with models.DAG(
3030
dag_id="maxtext_checkpointing",

dags/multipod/maxtext_sft_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from dags.multipod.configs.common import SetupMode
2424

2525
# Run once a day at 10 am UTC (2 am PST)
26-
SCHEDULED_TIME = '45 6 * * *' if composer_env.is_prod_env() else None
26+
SCHEDULED_TIME = '0 7 * * *' if composer_env.is_prod_env() else None
2727
HF_TOKEN = models.Variable.get('HF_TOKEN', None)
2828

2929
with models.DAG(

dags/orbax/maxtext_emc_restore_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from xlml.utils.gke import zone_to_region
1919

2020
DAG_TEST_NAME = "maxtext_emc_orbax_res_gcs"
21-
SCHEDULE = "45 3 * * *" if composer_env.is_prod_env() else None
21+
SCHEDULE = "0 10 * * *" if composer_env.is_prod_env() else None
2222

2323
with models.DAG(
2424
dag_id=DAG_TEST_NAME,

dags/orbax/maxtext_emc_restore_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from xlml.utils.gke import zone_to_region
1616

1717
DAG_TEST_NAME = "maxtext_emc_orbax_res_local"
18-
SCHEDULE = "30 4 * * *" if composer_env.is_prod_env() else None
18+
SCHEDULE = "45 10 * * *" if composer_env.is_prod_env() else None
1919

2020

2121
with models.DAG(

dags/orbax/maxtext_emc_resume_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from dags.orbax.util import checkpoint_util
2222
from xlml.utils.gke import zone_to_region
2323

24-
SCHEDULE = "15 9 * * *" if composer_env.is_prod_env() else None
24+
SCHEDULE = "30 15 * * *" if composer_env.is_prod_env() else None
2525
DAG_TEST_NAME = "maxtext_emc_resume_from_gcs"
2626

2727
with models.DAG(

dags/orbax/maxtext_emc_save_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from dags.orbax.util import test_config_util
2020

2121

22-
SCHEDULE = "30 6 * * *" if composer_env.is_prod_env() else None
22+
SCHEDULE = "45 12 * * *" if composer_env.is_prod_env() else None
2323
DAG_TEST_NAME = "maxtext_emc_save_gcs"
2424

2525

dags/orbax/maxtext_mtc_emergency_save_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from dags.orbax.util import test_config_util
2424

2525

26-
SCHEDULE = "45 5 * * *" if composer_env.is_prod_env() else None
26+
SCHEDULE = "0 12 * * *" if composer_env.is_prod_env() else None
2727
DAG_TEST_NAME = "maxtext_emc_and_mtc_orbax_save_local"
2828

2929

dags/orbax/maxtext_mtc_restore_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from xlml.utils.gke import zone_to_region
1919

2020
DAG_TEST_NAME = "maxtext_mtc_orbax_res_local"
21-
SCHEDULE = "30 7 * * *" if composer_env.is_prod_env() else None
21+
SCHEDULE = "45 13 * * *" if composer_env.is_prod_env() else None
2222

2323
with models.DAG(
2424
dag_id=DAG_TEST_NAME,

dags/orbax/maxtext_mtc_resume_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from dags.orbax.util import checkpoint_util
2222
from xlml.utils.gke import zone_to_region
2323

24-
SCHEDULE = "45 9 * * *" if composer_env.is_prod_env() else None
24+
SCHEDULE = "0 16 * * *" if composer_env.is_prod_env() else None
2525
DAG_TEST_NAME = "maxtext_mtc_resume_from_gcs"
2626

2727
with models.DAG(

dags/orbax/maxtext_mtc_save_gcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from dags.orbax.util import test_config_util
2020

2121

22-
SCHEDULE = "0 7 * * *" if composer_env.is_prod_env() else None
22+
SCHEDULE = "15 13 * * *" if composer_env.is_prod_env() else None
2323
DAG_TEST_NAME = "maxtext_mtc_orbax_save_gcs"
2424

2525

0 commit comments

Comments
 (0)