I am trying to trigger a stored procedure in Mysql from Airflow DAG using below code:
run_this_first = airflow.operators.mysql_operator.MySqlOperator(
task_id= 'sql_task',
sql= 'call test_procedure()',
mysql_conn_id= 'my_db',
database= 'my_db_schema_name',
dag = dag)
DAG compiles successfully and on starting task from UI, it keeps running and nothing is updated in database. Scheduler is up and running.
What can be wrong ?
Also from post, I am trying to understand difference between hook and operator.