Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you keep your airflow scheduler running in AWS EC2 while exiting ssh?

Tags:

airflow

Hi I'm using Airflow and put my airflow project in EC2. However, how would one keep the airflow scheduler running while my mac goes sleep or exiting ssh?

like image 393
user3368526 Avatar asked Oct 31 '25 15:10

user3368526


1 Answers

I use nohup to keep the scheduler running and redirect the output to a log file like so:

nohup airflow scheduler >> ${AIRFLOW_HOME}/logs/scheduler.log 2>&1 &

Note: Assuming you are running the scheduler here on your EC2 instance and not on your laptop.

like image 56
saarp Avatar answered Nov 02 '25 13:11

saarp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!