waleedsamy opened a new issue #17438:
URL: https://github.com/apache/airflow/issues/17438


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the 
following questions.
   Don't worry if they're not all applicable; just try to include what you can 
:-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   **Description**
   
   Airflow 1.10 support providing a run_id to TriggerDagRunOperator using 
[DagRunOrder](https://github.com/apache/airflow/blob/v1-10-stable/airflow/operators/dagrun_operator.py#L30-L33)
 object that will be returned after calling 
[TriggerDagRunOperator#python_callable](https://github.com/apache/airflow/blob/v1-10-stable/airflow/operators/dagrun_operator.py#L88-L95).
 With https://github.com/apache/airflow/pull/6317 (Airflow 2.0), this behavior 
changed and one could not provide run_id anymore to the triggered dag, which is 
very odd to say the least.
   
   <!-- A short description of your feature -->
   
   **Use case / motivation**
   
   I want to be able to provide run_id for the TriggerDagRunOperator. In my 
case, I use the TriggerDagRunOperator to trigger 30K dag_run daily and will be 
so annoying to see them having unidentifiable run_id.
   
   <!-- What do you want to happen?
   
   Rather than telling us how you might implement this solution, try to take a
   step back and describe what you are trying to achieve.
   
   -->
   
   After discussing with @ashb
   **Suggested fixes can be**
    * provide a templated run_id as a parameter to TriggerDagRunOperator.
    * restore the old behavior of Airflow 1.10, where DagRunOrder holds the 
run_id and dag_run_conf of the triggered dag
    * create a new sub-class of TriggerDagRunOperator to fully customize it
   
   **Are you willing to submit a PR?**
   
   <!--- We accept contributions! -->
   
   **Related Issues**
   
   <!-- Is there currently another issue associated with this? -->
   


-- 
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