add pause resume controls to ui
This commit is contained in:
1 parent
3c7cb45bec
commit
d81e00ddbc
13 files changed
+367
-12
No files matched your search
@@ -13,6 +13,7 @@ def get_stats(self: Any, include_events: bool = False) -> dict:
|
||||
start_ts = self._start_ts
|
||||
last_log_ts = self._last_log_ts
|
||||
exit_code = self._exit_code
|
||||
paused = bool(getattr(self, "_paused", False) and self._proc is not None and self._proc.poll() is None)
|
||||
log_len = len(self._log)
|
||||
counters = dict(self._counters)
|
||||
fudai_last = dict(self._fudai_last)
|
||||
@@ -125,6 +126,7 @@ def get_stats(self: Any, include_events: bool = False) -> dict:
|
||||
|
||||
payload = {
|
||||
"running": bool(running),
|
||||
"paused": paused,
|
||||
"pid": pid,
|
||||
"start_ts": start_ts,
|
||||
"last_log_ts": last_log_ts,
|
||||
@@ -145,4 +147,3 @@ def get_stats(self: Any, include_events: bool = False) -> dict:
|
||||
payload["events"] = events[-200:]
|
||||
|
||||
return payload
|
||||
|
||||
Reference in new issue
Block a user