We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 683726a commit 51d72b7Copy full SHA for 51d72b7
1 file changed
mycli/main.py
@@ -2158,7 +2158,7 @@ class CliArgs:
2158
help='Format for batch or --execute output.',
2159
)
2160
throttle: float = clickdc.option(
2161
- type=int,
+ type=float,
2162
default=0.0,
2163
help='Pause in seconds between queries in batch mode.',
2164
@@ -2702,7 +2702,7 @@ def dispatch_batch_statements(statements: str, batch_counter: int) -> None:
2702
sys.exit(1)
2703
try:
2704
if warn_confirmed:
2705
- if cli_args.throttle and batch_counter >= 1:
+ if cli_args.throttle > 0 and batch_counter >= 1:
2706
sleep(cli_args.throttle)
2707
mycli.run_query(statements, checkpoint=cli_args.checkpoint, new_line=True)
2708
except Exception as e:
0 commit comments