1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/operations
catborise e83bdcbd44 fix: worker warnings and CPU windows do not depend on a wall clock
The job panel warned "Worker unavailable" when the worker's last
heartbeat was more than 60 s older than the browser's clock: a browser
set two minutes ahead warned about a worker that had just beaten, and
one behind hid a worker that had stopped. The server now says whether
the worker is gone (worker_gone in the job panel's answer), by the same
rule as the Jobs page.

A host's CPU graph measured its averaging window with time.time(): a
clock set back between two polls gave a negative window. It now uses
time.monotonic(), as a VM's usage already does; a sample from before
the server restarted is measured over a second again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
2026-11-10 12:21:36 +03:00
..
api fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
management feat(operations): the job worker 2026-10-14 23:27:57 +03:00
migrations fix(logs): a job's rows carry the address it was asked from, and a cancel its own user 2026-11-07 14:36:44 +03:00
static/operations fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
templates/operations fix(ui): the Logs and Jobs page links fit a phone screen 2026-11-10 09:05:01 +03:00
templatetags feat(operations): the job panel and job pages speak the page's language 2026-11-02 23:33:34 +03:00
tests fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
__init__.py feat(operations): job, claim and worker lease models 2026-10-14 23:27:57 +03:00
apps.py refactor(settings): SQLite's WAL mode is an init_command 2026-11-06 11:01:51 +03:00
claims.py fix(claims): a request's claim no longer blocks once its process has ended 2026-11-06 09:05:06 +03:00
jobs.py fix(logs): a job's rows carry the address it was asked from, and a cancel its own user 2026-11-07 14:36:44 +03:00
models.py fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
urls.py feat(operations): jobs page 2026-10-14 23:27:57 +03:00
utils.py fix(operations): a job's unexpected error is not shown raw; the log has its traceback 2026-11-06 23:48:44 +03:00
views.py fix: worker warnings and CPU windows do not depend on a wall clock 2026-11-10 12:21:36 +03:00
worker.py fix(operations): a cancel during recovery cannot hold up its job for good 2026-11-09 16:34:20 +03:00