paavanb edited a comment on issue #20073:
URL: https://github.com/apache/airflow/issues/20073#issuecomment-988255611


   Actually, it turns out that the `params` option is very close to what I'm 
looking for: it allows me to specify a dictionary that is then accessible to 
the DAG run, even if the run was scheduled. However, I don't seem to be able to 
specify multiple schedules with different `params` in Python. I do see how this 
would be difficult to manage in the UI though.
   
   Although the ability to generate DAGs with Python is very powerful, the 
problem I'm running into is that it's not really possible to reuse DAGs when 
scheduling tasks, which means that I have to have 10s-100s of DAGs even though 
it's really the same DAG being run with different params. Either that, or I'll 
end up writing cron jobs in my own system that will use the API to call the DAG 
with different parameters.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to