[GitHub] [airflow] jonathanshir commented on issue #8058: [AIP-31] Add lazy way to get Airflow context from a wrapped function

2020-04-26 Thread GitBox
jonathanshir commented on issue #8058: URL: https://github.com/apache/airflow/issues/8058#issuecomment-619541957 Sounds great, does this imply we also change the context being provided the old way? ``` @provide_context def task(**context): print(type(context)) # == NamedTupl

[GitHub] [airflow] jonathanshir commented on issue #8058: [AIP-31] Add lazy way to get Airflow context from a wrapped function

2020-04-26 Thread GitBox
jonathanshir commented on issue #8058: URL: https://github.com/apache/airflow/issues/8058#issuecomment-619539473 My suggested changes: The issue states we want to implement context similarly to flask.requests : ``` from airflow.task import context @task def context_task(...)