Skip to content

TriggerDagRunOperator not finding DAG #1010

@Rulevoid

Description

@Rulevoid

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions