-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding an example to illustrate the TriggerDagRunOperator #1043
Conversation
Adding an example to illustrate the TriggerDagRunOperator
def run_this_func(ds, **kwargs): | ||
print( "Remotely received value of {} for key=message".format(kwargs['dag_run'].conf['message'])) | ||
|
||
run_this = PythonOperator( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you need import PythonOperator?
|
||
|
||
# Define the single task in this controller example DAG | ||
trigger = TriggerDagRunOperator(task_id='test_trigger_dagrun', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need import TriggerDagRunOperator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need add imports
Addressing #1001 by adding examples