You won't be able to if there's a schema change. On Tue, Oct 3, 2017 at 12:33 PM, Thoralf Gutierrez < [email protected]> wrote:
> Hey everybody! > > Does anybody have some kind of runbook to upgrade airflow (with a Celery > backend) without having any downtime (i.e. tasks keep on running as you > upgrade)? > > I have this in mind, but not sure if I am missing something or if I should > be careful with the order of steps (especially for upgrading the db > schema): > > 1. run airflow upgradedb from anywhere > > 2. one worker at a time > 2a. make sure it doesn't start any new task. > 2b. wait for all tasks to be finished > 2c. run pip install airflow --upgrade > 2d. re-enable worker > > 3. one webserver at a time > 3a. kill webserver > 3b. run pip install airflow --upgrade > 3c. start webserver > > 4. scheduler > 4a. kill scheduler > 4b. run pip intsall airflow --upgrade > 4c. start scheduler > > Thanks, > Thoralf >
