Problem
In Composer 1 airflow-worker pods can sometimes become stuck or unresponsive, but we do not want to rebuild the entire environment using a new PyPI package or environment variable.
Environment
- Composer version 1
Solution
- Scale down the replicas for the airflow-worker pods to zero.
- Wait for pods to be deleted.
- Scale replicas back to desired number.
Cause
The airflow-worker can sometimes enter an unrecoverable state due to issues on the Google Kubernetes Engine node that they are scheduled on.