I am trying to trigger DAG task for 3 times , how can this be done using python script.
Currently my flow job is
dag = DAG('dag1', default_args=default_args, concurrency=1, max_active_runs=1, schedule_interval=None, catchup=False)
task = BashOperator( task_id='task1', bash_command='ssh "runJob.sh"', dag=dag)
Is there any better way to trigger job for a given specified number of times ?