Skip to content

Commit

Permalink
Set receive_timeout for anti join query (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexfvk authored Sep 6, 2024
1 parent 4949482 commit b3e694d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ch_tools/common/commands/clean_object_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ def _clean_object_storage(
deleted = 0
total_size = 0
with TemporaryFile() as keys_file:
timeout = ctx.obj["config"]["object_storage"]["clean"]["antijoin_timeout"]
with ch_client.query(
antijoin_query,
timeout=ctx.obj["config"]["object_storage"]["clean"]["antijoin_timeout"],
timeout=timeout,
settings={"receive_timeout": timeout},
stream=True,
format_="TabSeparated",
) as resp:
Expand Down

0 comments on commit b3e694d

Please sign in to comment.