From f10e035bfda1305707d03eac5296f1b38b837804 Mon Sep 17 00:00:00 2001 From: lb584 <lb584@cam.ac.uk> Date: Thu, 1 Aug 2024 12:06:40 +0100 Subject: [PATCH] updating docs --- docs/_source/iaas_setup.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/_source/iaas_setup.rst b/docs/_source/iaas_setup.rst index 7814669..66729ef 100644 --- a/docs/_source/iaas_setup.rst +++ b/docs/_source/iaas_setup.rst @@ -651,6 +651,7 @@ Once you have got airflow running from the command line, you will need to set it 1: create a service file for airflow scheduler and webserver: sudo touch /etc/systemd/system/airflow-scheduler.service + sudo touch /etc/systemd/system/airflow-webserver.service edit the contents of both files to be: @@ -667,8 +668,10 @@ edit the contents of both files to be: Group=ewsmanager Type=simple ExecStart=/usr/bin/bash -c 'export AIRFLOW_HOME=/storage/airflow ; source /storage/airflow/airflow-env/bin/activate ; airflow webserver' - Restart=no + Restart=on-failure RestartSec=5s + StartLimitIntervalSec=10s + StartLimitBurst=3 PrivateTmp=true [Install] WantedBy=multi-user.target @@ -685,8 +688,10 @@ edit the contents of both files to be: Group=ewsmanager Type=simple ExecStart=/usr/bin/bash -c 'export AIRFLOW_HOME=/storage/airflow ; source /storage/airflow/airflow-env/bin/activate ; airflow scheduler' - Restart=no + Restart=on-failure RestartSec=5s + StartLimitIntervalSec=10s + StartLimitBurst=3 PrivateTmp=true [Install] WantedBy=multi-user.target -- GitLab