From 462eb7a041c1e5ef68b45ce2fd0ae5ac976b8300 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Thu, 10 Oct 2024 23:13:26 +0100 Subject: [PATCH] Add an English-only docsbuild scheduled job --- salt/docs/init.sls | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/salt/docs/init.sls b/salt/docs/init.sls index 30a4f5b8..aafd4e72 100644 --- a/salt/docs/init.sls +++ b/salt/docs/init.sls @@ -81,6 +81,7 @@ docsbuild-sentry: docsbuild-no-html: cron.present: + # run every other day at 07:06 - identifier: docsbuild-no-html - name: > /srv/docsbuild/venv/bin/python @@ -89,18 +90,35 @@ docsbuild-no-html: - user: docsbuild - minute: 7 - hour: 6 + - daymonth: '*/2' - require: - cmd: virtualenv-dependencies docsbuild-only-html: cron.present: + # run daily at 04:42 - identifier: docsbuild-only-html - name: > /srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --select-output=only-html - user: docsbuild - - minute: 16 + - minute: 42 + - hour: 4 + - require: + - cmd: virtualenv-dependencies + +docsbuild-only-html-en: + cron.present: + # run twice hourly at HH:16 and HH:46 + - identifier: docsbuild-only-html + - name: > + /srv/docsbuild/venv/bin/python + /srv/docsbuild/scripts/build_docs.py + --select-output=only-html-en + --language=en + - user: docsbuild + - minute: 16,46 - require: - cmd: virtualenv-dependencies