Add scripts to run Airflow from the App
Pre-release
Pre-release
Launching MacOs App from the console:
- Set
AIRFLOW_HOME
environment variable to use a custom location for Airflow home directory - Run configuration script (do it every time you change
AIRFLOW_HOME
)
cwl-airflow.app/Contents/MacOS/init
Script will runairflow initdb
, updateairflow.cfg
, copy DAGs and create required connections - Run scheduler
cwl-airflow.app/Contents/MacOS/airflow scheduler
- Run API server (use
-h
to see additional parameters)
cwl-airflow.app/Contents/MacOS/apiserver
Launching MacOs App from a Finder:
NOTE: the default location for AIRFLOW_HOME
will be used ~/airflow
- Double click on
cwl-airflow.app
Script will create three services in~/Library/LaunchAgents
com.biowardrobe.airflow-scheduler.plist
com.biowardrobe.airflow-webserver.plist
com.biowardrobe.airflow-apiserver.plist
- Use
Load
andUnload
buttons to start and stop services. - If
cwl-airflow.app
is moved to another location, make sure to manually remove abovementionedplist
files