Skip to content

Commit cc27fbf

Browse files
committed
also min values
1 parent 21c1563 commit cc27fbf

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pyhdtoolkit/scripts/htc_monitor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def wait_with_progress(console: Console, wait: int) -> None:
124124

125125
@app.command()
126126
def main(
127-
wait: int = Option(300, "-w", "--wait", min=0, help="Seconds to wait between calls to `condor_q`."),
128-
refresh: float = Option(1, "-r", "--refresh", min=0, help="Table display refreshes per second."),
127+
wait: int = Option(300, "-w", "--wait", min=1, help="Seconds to wait between calls to `condor_q`."),
128+
refresh: float = Option(1, "-r", "--refresh", min=0.1, help="Table display refreshes per second."),
129129
log_level: str = Option("warning", help="Console logging level. Can be 'debug', 'info', 'warning' and 'error'."),
130130
):
131131
"""
@@ -139,10 +139,7 @@ def main(
139139
# is defined in the function above and takes care of the query etc.
140140
with Live(generate_renderable(), refresh_per_second=refresh) as live:
141141
# live.console.log(f"Querying HTCondor every {wait:d} seconds (display refreshes {refresh:.2f} times/second).\n")
142-
live.console.log(
143-
f"Querying HTCondor every {wait:d} seconds "
144-
f"(display refreshes {refresh:.2f} times/second).\n"
145-
)
142+
live.console.log(f"Querying HTCondor every {wait:d} seconds (display refreshes {refresh:.2f} times/second).\n")
146143

147144
while True:
148145
try:

0 commit comments

Comments
 (0)