mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Print a proper message for finished awaiting
This commit is contained in:
parent
d43329f254
commit
ccaa66963d
@ -845,11 +845,12 @@ class CiCache:
|
|||||||
del self.jobs_to_wait[job]
|
del self.jobs_to_wait[job]
|
||||||
|
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
# Avoid `seconds left [-3]`
|
expired_sec = int(time.time() - start_at)
|
||||||
expired_sec = min(int(time.time() - start_at), TIMEOUT)
|
msg = f"...awaiting continues... seconds left [{TIMEOUT - expired_sec}]"
|
||||||
print(
|
if expired_sec >= TIMEOUT:
|
||||||
f"...awaiting continues... seconds left [{TIMEOUT - expired_sec}]"
|
# Avoid `seconds left [-3]`
|
||||||
)
|
msg = f"awaiting for round {round_cnt} is finished"
|
||||||
|
print(msg)
|
||||||
else:
|
else:
|
||||||
# make up for 2 iterations in dry_run
|
# make up for 2 iterations in dry_run
|
||||||
expired_sec += int(TIMEOUT / 2) + 1
|
expired_sec += int(TIMEOUT / 2) + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user