python-docs-samples
python-docs-samples copied to clipboard
feat(composer): pause/unpause DAGs in one operation
Description
Fixes #10805
When the Airflow instance version is >= 2.9.0 it now uses only one environments.executeAirflowCommand operation (consuming 25 write quota units) for all the DAGs, instead one operation per DAG. It's also way faster (during experimentation, it took 13,54ms per DAG to pause with the new method).
Checklist
- [x] I have followed Sample Guidelines from AUTHORING_GUIDE.MD
- [x] README is updated to include all relevant information
- [ ] Tests pass:
nox -s py-3.9(see Test Environment Setup) - [ ] Lint pass:
nox -s lint(see Test Environment Setup) - [ ] These samples need a new API enabled in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
- [ ] This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
- [ ] This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
- [x] Please merge this PR for me once it is approved