Skip to content

Commit 61e4f03

Browse files
committed
format
1 parent ba017bb commit 61e4f03

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lab-sdk/src/lab/remote_trap.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,10 @@ def _handle_stop_signal(signum, _frame) -> None: # type: ignore[no-untyped-def]
327327
pending_log_lines.append(line)
328328

329329
now = time.monotonic()
330-
should_flush = len(pending_log_lines) >= periodic_flush_min_lines or (
331-
now - last_periodic_flush_ts
332-
) >= periodic_flush_interval_s
330+
should_flush = (
331+
len(pending_log_lines) >= periodic_flush_min_lines
332+
or (now - last_periodic_flush_ts) >= periodic_flush_interval_s
333+
)
333334
if should_flush:
334335
_append_provider_logs("".join(pending_log_lines))
335336
pending_log_lines.clear()

0 commit comments

Comments
 (0)