Skip to content

Commit

Permalink
modify schedule for deploy-model, not explore-data (#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgilley committed May 26, 2023
1 parent 400ade0 commit 7b9e3f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: tutorials-get-started-notebooks-deploy-model
on:
workflow_dispatch:
schedule:
- cron: "0 */8 * * *"
- cron: "0 */12 * * *"
pull_request:
branches:
- main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: tutorials-get-started-notebooks-explore-data
on:
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
- cron: "0 */8 * * *"
pull_request:
branches:
- main
Expand Down
7 changes: 4 additions & 3 deletions tutorials/readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,13 @@ def write_notebook_workflow(
forecast_import = get_forecast_reqs(name, nb_config)
posix_folder = folder.replace(os.sep, "/")
posix_notebook = notebook.replace(os.sep, "/")
runs_on = "ubuntu-latest"
workflow_sched = "0 */8 * * *"
if "explore-data" in name:
runs_on = "ubuntu-20.04"
if "deploy-model" in name:
workflow_sched = "0 */12 * * *"
else:
runs_on = "ubuntu-latest"
workflow_sched = "0 */8 * * *"

workflow_yaml = f"""{READONLY_HEADER}
name: tutorials-{classification}-{name}
# This file is created by tutorials/readme.py.
Expand Down

0 comments on commit 7b9e3f1

Please sign in to comment.