2727 dag_id = "sys_summits" ,
2828 description = "Example DAG for plain-text SQL task." ,
2929 default_args = {"conn_id" : "cratedb_connection" },
30- schedule = "*/10 * * * * * *" , # @continuous, @daily
30+ schedule = "*/1 * * * *" , # @continuous, @daily
3131 catchup = False ,
3232 max_active_runs = 1 ,
3333):
@@ -44,7 +44,7 @@ def execute_query_taskflow():
4444 dag_id = "import_export" ,
4545 description = "Example DAG for SQLExecuteQueryOperator" ,
4646 default_args = {"conn_id" : "cratedb_connection" },
47- schedule = "*/30 * * * * * *" , # @continuous, @daily
47+ schedule = "*/5 * * * *" , # @continuous, @daily
4848 catchup = False ,
4949 max_active_runs = 1 ,
5050):
@@ -61,7 +61,7 @@ def execute_query_taskflow():
6161 }
6262
6363 ddl = SQLExecuteQueryOperator (
64- task_id = f "submit_ddl" ,
64+ task_id = "submit_ddl" ,
6565 conn_id = "cratedb_connection" ,
6666 sql = """
6767 CREATE TABLE IF NOT EXISTS {{params.table}} (
@@ -76,7 +76,7 @@ def execute_query_taskflow():
7676 )
7777
7878 insert = SQLExecuteQueryOperator (
79- task_id = f "import_from_http" ,
79+ task_id = "import_from_http" ,
8080 conn_id = "cratedb_connection" ,
8181 sql = """
8282 COPY {{params.table}}
@@ -88,7 +88,7 @@ def execute_query_taskflow():
8888 )
8989
9090 export = SQLExecuteQueryOperator (
91- task_id = f "export_to_s3" ,
91+ task_id = "export_to_s3" ,
9292 conn_id = "cratedb_connection" ,
9393 sql = """
9494 COPY {{params.table}}
@@ -114,7 +114,7 @@ def execute_query_taskflow():
114114 dag_id = "export_deltalake" ,
115115 description = "Example DAG for CrateDB Toolkit I/O" ,
116116 default_args = {"conn_id" : "cratedb_connection" },
117- schedule = "*/30 * * * * * *" , # @continuous, @daily
117+ schedule = "*/5 * * * *" , # @continuous, @daily
118118 catchup = False ,
119119 max_active_runs = 1 ,
120120):
0 commit comments