-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Closed
Description
When attempting to execute a dag manually via an external script like the below, I receive the following error:
airflow.utils.AirflowException: Argument ['owner', 'task_id'] is required
The trigger_dag_id is the correct name of the dag and I have followed the tutorial with the same dag working fine. It is as if the TriggerDagRunOperator is not "seeing" the dag. If I enter a random value for trigger_dag_id, I receive the same result. Is this an issue or is my example below not correct? Thanks!
from airflow.operators import TriggerDagRunOperator
def set(context, dro):
# Pass some data to the dag
dro.payload={"something": "sofake"}
return dro
tdro = TriggerDagRunOperator(trigger_dag_id="good_dag", python_callable=set)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels