mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 08:26:03 +00:00
Whether a moved disk's old file is used elsewhere is asked of every compute in a thread the job waits on for at most 60 s. A host that did not answer kept that thread, and each later disk move or migration left one more. As the VM delete's check does, a compute that does not answer is not asked again: the file counts as used, so it is kept. Both checks marked a compute as not answering from the moment they asked it. A check beside another one (two jobs at once) took a healthy compute that the other was asking for a stuck one, and refused at once; and two overlapping checks could both ask a stuck one, the first to end clearing the mark of the other. Each call to a compute now records when it started, and a compute counts as not answering only while a call to it has run for 60 s, checked again just before each compute is asked. And a VM delete's check whose thread had not yet reached the first compute when the 60 s ran out found no failure and no compute it was at, and answered that no file was used: the disks could have been deleted unchecked. It now counts as not answered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea |
||
|---|---|---|
| .. | ||
| api | ||
| migrations | ||
| templates | ||
| templatetags | ||
| tests | ||
| __init__.py | ||
| addresses.py | ||
| apps.py | ||
| forms.py | ||
| jobs.py | ||
| models.py | ||
| report.py | ||
| states.py | ||
| urls.py | ||
| utils.py | ||
| views.py | ||