vatsrahul1001 opened a new issue, #33061:
URL: https://github.com/apache/airflow/issues/33061

   ### Apache Airflow version
   
   main (development)
   
   ### What happened
   
   When TriggerDagRunOperator task log showing below warning
   `WARNING - Unable to redact <DagRunState.SUCCESS: 'success'>, please report 
this via <https://github.com/apache/airflow/issues>. Error was: TypeError: 
EnumMeta.__call__() missing 1 required positional argument: 'value'`
   
   
   
   <img width="1479" alt="image" 
src="https://github.com/apache/airflow/assets/43964496/0c183ffc-2440-49ee-b8d0-951ddc078c36";>
   
   
   
   ### What you think should happen instead
   
   There should not be any warning in logs
   
   ### How to reproduce
   
   Steps to Repo:
   1. Launch airflow using Breeze with main
   2. Trigger any TriggerDagRunOperator
   3. Check logs
   
   DAG :
   `from airflow import DAG
   from airflow.operators.trigger_dagrun import TriggerDagRunOperator
   from airflow.operators.dummy import DummyOperator
   from airflow.utils.dates import days_ago
   
   """This example illustrates the use of the TriggerDagRunOperator. There are 2
   entities at work in this scenario:
   1. The Controller DAG - the DAG that conditionally executes the trigger
   2. The Target DAG - DAG being triggered (in trigger_dagrun_target.py)
   
   """
   
   dag = DAG(
       dag_id="trigger_controller_dag",
       default_args={"owner": "airflow", "start_date": days_ago(2)},
       schedule_interval=None,
       tags=["core"],
   )
   
   
   trigger = TriggerDagRunOperator(
       task_id="test_trigger_dagrun",
       trigger_dag_id="trigger_target_dag",
       reset_dag_run=True,
       wait_for_completion=True,
       conf={"message": "Hello World"},
       dag=dag,
   )`
   
   Note: create a DAG `trigger_target_dag` which maybe sleeps for sometime
   
   ### Operating System
   
   OS x
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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