Reputation: 4425
I'm exploring apache airflow 1.8
. I'm curious that either is there any way to pass arguments to DAGs
or tasks
while backfilling
?
Here is something like that I'm searching for,
airflow backfill My_DAG -s some_date -e end_date argument_for_t1 argument_for_t2
or it could be array
of args.
is there any way to pass arguments? I've searched a lot, but wasn't able to find anything.
Upvotes: 1
Views: 1462
Reputation: 4425
I came across the solution that I can set the variables using airflow variables -s my_var="some value"
Now I can access my_var
anywhere across the application.
for more options check cli
Upvotes: 0
Reputation: 2513
Backfill is to re-run a failed/missed/mis configured DAG and hence there is no provision to give command line arguments.
However, you can go to DagBag folder and give params to the dag object (Change/fix existing dag) and then back fill the DAG
Upvotes: 2