troyharvey commented on issue #26834:
URL: https://github.com/apache/airflow/issues/26834#issuecomment-1268946757

   Thanks @DMilmont. We've "disabled" our k8s upgrade job as a temporary 
workaround using this command:
   
   ```
           # Running airflow db upgrade on every deployment is slow because it 
reserializes all DAGs.
           # Use the dry run flag `--show-sql-only` to see if there are any 
available migrations to run.
           # When there are no migrations to run the output says "No migrations 
to apply."
           # When there are migrations to run the output says "Running upgrade."
           command:
             - sh
             - -c
             - >-
               airflow db upgrade --show-sql-only |
               grep --quiet "Running upgrade" &&
               airflow db upgrade
               || true
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to