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

Add support for restart on watched files. #518

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

memory
Copy link

@memory memory commented Mar 12, 2020

If the env variable WATCH_FILES is set, use the
entr(1) tool to wrap the entrypoint
script to automatically restart the airflow process if a change is
detected in any of the watched files.

The use case here is: a sidecar container syncs the dags directory from
an external source, and that sync updates
/usr/local/airflow/dags/requirements.txt: in this case we would want to
restart the airflow process after re-processing the requirements.

If the env variable `WATCH_FILES` is set, use the
[entr(1)](http://eradman.com/entrproject/) tool to wrap the entrypoint
script to automatically restart the airflow process if a change is
detected in any of the watched files.

The use case here is: a sidecar container syncs the dags directory from
an external source, and that sync updates
/usr/local/airflow/dags/requirements.txt: in this case we would want to
restart the airflow process after re-processing the requirements.
@memory
Copy link
Author

memory commented Apr 13, 2020

Slight nudge; is this functionality that you'd be interested in merging in?

@memory
Copy link
Author

memory commented Aug 27, 2020

Poke. :)

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

Successfully merging this pull request may close these issues.

2 participants