Обновить clickhouse_dag.py
This commit is contained in:
@@ -11,10 +11,13 @@ with DAG(
|
|||||||
|
|
||||||
list_tables = SimpleHttpOperator(
|
list_tables = SimpleHttpOperator(
|
||||||
task_id="list_tables",
|
task_id="list_tables",
|
||||||
http_conn_id="clickhouse_http", # Connection в Airflow
|
http_conn_id="clickhouse_http",
|
||||||
endpoint="/",
|
endpoint="/",
|
||||||
method="POST",
|
method="POST",
|
||||||
data={"query": "SHOW TABLES"},
|
data={"query": "SHOW TABLES"},
|
||||||
headers={"Content-Type": "application/x-www-form-urlencoded"},
|
headers={"Content-Type": "application/x-www-form-urlencoded"},
|
||||||
log_response=True, # покажет результат в логах Airflow
|
log_response=True,
|
||||||
|
retries=0,
|
||||||
|
retry_delay=0,
|
||||||
|
timeout=10,
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user