@task.sensor does not receive injected values #33121
Labels
area:core
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Apache Airflow version
Other Airflow 2 version (please specify below)
What happened
Airflow version: MWAA (2.5.1)
Context/use-case: migrating from oozie where there are several coordinated workflows that operate for a given day and look for their "inputs" to start the work.
Tried having the producer and consumer both scheduled
@daily
and for the consumer to start with a@task.sensor
that looked for a _SUCCESS file (in s3) for its ds/datestamp.I'm told that the v1 style of sensor as an object supports this - haven't tried yet, but was going from the get-go with v2 style as more natural and modern, and very surprised to find that the context variables were not injected into
@task.sensor
functions the way they were for@task
functions.What you think should happen instead
@task.sensor
-decorated functions should support injected kwargs in the same way as@task
-decorated functions.How to reproduce
Write a simple dag with
see
Operating System
MWAA 2.5.1
Versions of Apache Airflow Providers
MWAA 2.5.1
Deployment
Amazon (AWS) MWAA
Deployment details
latest version 2.5.1
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: