Skip to content
Discussion options

You must be logged in to vote

In order to get more variables in the context you should make sure you use the same Python Version as your airflow and install Airflow in the external env. Then your context will contain more of the variables (not task_instance) but at least dag_run that should give you all that you need to run xcom_pull/push:

    AIRFLOW_SERIALIZABLE_CONTEXT_KEYS = {
        "macros",
        "conf",
        "dag",
        "dag_run",
        "task",
        "params",
        "triggering_dataset_events",
    }

This is explained in the Docs of the EPO

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@JHLi22
Comment options

@potiuk
Comment options

potiuk Aug 19, 2023
Collaborator

Answer selected by exelents
Comment options

You must be logged in to vote
1 reply
@potiuk
Comment options

potiuk Mar 2, 2023
Collaborator

Comment options

You must be logged in to vote
1 reply
@ayush7800ishere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants