You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "BrunoGrandePhD (via GitHub)" <gi...@apache.org> on 2023/02/10 04:24:31 UTC

[GitHub] [airflow] BrunoGrandePhD commented on issue #29137: Add ability to access context in functions decorated by task.sensor

BrunoGrandePhD commented on issue #29137:
URL: https://github.com/apache/airflow/issues/29137#issuecomment-1425156771

   I see that a PR to address this is already open and already approved by at least one reviewer, but if anyone else stumbles upon this issue, you can use `airflow.operators.python.get_current_context()` as a temporary solution to access context variables ([docs](https://airflow.apache.org/docs/apache-airflow/stable/tutorial/taskflow.html#:~:text=Also%2C%20sometimes%20you%20might%20want%20to%20access%20the%20context%20somewhere%20deep%20in%20the%20stack%2C%20but%20you%20do%20not%20want%20to%20pass%20the%20context%20variables%20from%20the%20task%20callable.%20You%20can%20still%20access%20execution%20context%20via%20the%20get_current_context%20method.)). 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org