mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
Deferrable tasks stayed deferred forever: the Airflow container ran only the scheduler and the webserver. The bootstrap now runs `airflow triggerer` beside the scheduler in a restart loop, as MWAA runs one for Airflow 2.2 and later, and an environment is only AVAILABLE once /health reports the triggerer healthy. requirements.txt was never installed. It was installed by a docker exec of `pip` after the container started, and in the apache/airflow image `pip` resolves to /root/bin/pip, which the airflow user cannot read, so the exec exited 126; the exec was also cut off after 30 seconds. The file is now fetched at CreateEnvironment and installed by the container bootstrap after the startup script and before Airflow starts, the order AWS documents. One install script serves the bootstrap and the DAG-sync reinstall: it sources the environment saved after the startup script, runs `timeout 900 python -m pip install`, and records pip's exit code. The first DAG-sync pass reinstalls only when that bootstrap install failed. Reinstalls run on their own pool, one at a time per environment, so a slow pip no longer holds up the DAG sync. Only a missing requirements object leaves CreateEnvironment going; other S3 errors fail it, as they do for the startup script.