Обновить clickhouse_dag.py
This commit is contained in:
@@ -11,10 +11,13 @@ with DAG(
|
||||
|
||||
list_tables = SimpleHttpOperator(
|
||||
task_id="list_tables",
|
||||
http_conn_id="clickhouse_http", # Connection в Airflow
|
||||
http_conn_id="clickhouse_http",
|
||||
endpoint="/",
|
||||
method="POST",
|
||||
data={"query": "SHOW TABLES"},
|
||||
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