Replies: 4 comments 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
We are experiencing the same issue and have been looking int it. Airflow uses the For us, that isn't really important, as that is how we want to use it (our
This is easily resolved with a custom
(It's pretty easy to override this one in the conf file, add By the way, yes, it will essentially duplicate the extra for new datasets between the Now we're halfway, we still need to retrieve the extra during a run. Whenever a new dag run is triggered by dataset events, it will receive a set of
What does this do? Since it uses the task instance, you can only use it within operators, but that's all we need. Sorry for the long write-up (doing this as much for my own memory as anything else), but have fun with it. |
Beta Was this translation helpful? Give feedback.
-
Not sure I have a better answer, but for potentially similar reasons I am using XCOMs from the originating task to pass data |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I was wondering If I could somehow pull the extra argument from the defined Dataset.
If I understand this concept correctly, the Dataset object is saved in the airflow backend DB along with the extra parameter. For example:
ds1 = Dataset("/tmp/airflow/file1.csv", extra={"team": "trainees"})
The same Dataset is defined in the consumer DAG, but without the extra argument.
Is there any way to pull the extra from producer DAG in the consumer DAG? Or the extra argument is linked with the specific DAG and there is no way of pulling it?
If not, I can make workaround to put some metadata in the specified URI...
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions