Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

airflow find trigger type

def my_fun(context):
    if context.get('dag_run').external_trigger:
        print('manual run')
    else:
        print('scheduled run')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #airflow #find #trigger #type
ADD COMMENT
Topic
Name
4+7 =