Relative Content

Tag Archive for pythonairflow

Fetch and Store Airflow Logs

Is there any way to fetch the airflow logs programmatically and store it in some variable ? (in the form of strings)
I want to use the logs stored inside that variable to use all the messages present inside the ERROR logging level in airflow.

Airflow task_group with list from previous task

Based on the following answer to a similar question, I’m trying to create an airflow task_group based of an output from a previous task.
More precisely, my first task uses the ExecuteSQLQueryOperator which returns a list. And I want to use this list to map it to a task group. However I always end up with a TypeError: 'XComArg' object is not iterable.