Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flower #6

Open
edbizarro opened this issue Mar 27, 2019 · 6 comments
Open

Flower #6

edbizarro opened this issue Mar 27, 2019 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@edbizarro
Copy link
Member

No description provided.

@edbizarro edbizarro added the enhancement New feature or request label Mar 27, 2019
@edbizarro edbizarro added this to the v1.0 milestone Mar 27, 2019
@domdip
Copy link

domdip commented Apr 12, 2019

FYI - in latest run, Flower didn't start. Probably need to pass -D to webserver - daemonize it so 2nd part of command runs

@edbizarro
Copy link
Member Author

Thanks! yeah, you're right. I'll change the script

@edbizarro
Copy link
Member Author

Found out that flower does not support SQS

So I'm moving to redis instead

@domdip
Copy link

domdip commented Apr 13, 2019

FYI what actually needs to happen is something like this (used in my case where I'm putting the scheduler and webserver on one host).

#!/usr/bin/env bash
if [ "\$AIRFLOW_ROLE" == "SCHEDULER" ]
then exec airflow scheduler -n 10
elif [ "\$AIRFLOW_ROLE" == "WEBSERVER" ]; then 
    exec airflow webserver -D 
    exec airflow scheduler -D -n 10
elif [ "\$AIRFLOW_ROLE" == "WORKER" ]
then exec airflow worker
else echo "AIRFLOW_ROLE value unknown" && exit 1
fi

exec spawns things in a new (dedicated) process so it can't have bash helpers like &&, will need to be called twice.

@edbizarro
Copy link
Member Author

edbizarro commented Apr 13, 2019

Yes, i did that, but flower throws errors wich led me to that issue saying flower doesnt support SQS

@domdip
Copy link

domdip commented Apr 15, 2019

Actually, be careful using that approach. This may not be an issue with Flower but Scheduler quits frequently and is managed by systemctl. Putting two things under that same script will mean that systemctl will wait for all of them to exit before restarting either.

I had to rewrite this a lot for my use case (scheduler + webserver on same host) ultimate setting up a systemctl for each of them, with slightly different service environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants