Page MenuHomeDevCentral

Allow to enter a shell for Airflow maintenance operations
ClosedPublic

Authored by dereckson on Jan 13 2024, 13:30.
Tags
None
Referenced Files
F24559890: D3275.diff
Fri, Feb 27, 06:53
F24558636: D3275.id8414.diff
Fri, Feb 27, 05:14
F24557175: D3275.id8414.diff
Fri, Feb 27, 03:27
F24555682: D3275.id8414.diff
Fri, Feb 27, 01:39
F24555655: D3275.diff
Fri, Feb 27, 01:37
F24550869: D3275.id8414.diff
Thu, Feb 26, 19:36
F24550852: D3275.diff
Thu, Feb 26, 19:35
F24549710: D3275.diff
Thu, Feb 26, 18:13
Subscribers
None

Details

Summary

To ease debug and testing, a shell with python is convenient.

Also to run commands in batch, like to drop default user and create
correct users account, a shell is faster than spin new containers
each time.

This change also correctly pass arguments to airflow command when a shell
is not needed, so airflow nasqueron users delete --username root works.

Ref T1812

Test Plan

airflow shell

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
airflow-wrapper
Build Status
Buildable 5169
Build 5450: arc lint + arc unit

Event Timeline

dereckson created this revision.

When deployed to Dwellers, code is no-op regarding the code tested there, so looks good to me.

The AIRFLOWDATABASESQL_ALCHEMY_CONN environment variable will be removed later, allowing faster container spawn time, but that's for D3273.

This revision is now accepted and ready to land.Jan 13 2024, 13:31