feat(selfhost): start full updates from administration
This commit is contained in:
@@ -109,6 +109,9 @@ class Controller:
|
||||
if record.get("status") in ("queued", "running"):
|
||||
record.update(status="interrupted", errorCode="INTERRUPTED", updatedAt=engine.now())
|
||||
engine.write_json(path, record)
|
||||
if (REQUEST_ID.fullmatch(str(record.get("requestId", "")))
|
||||
and (self.active is None or record.get("startedAt", "") > self.read(self.active).get("startedAt", ""))):
|
||||
self.active = record["requestId"]
|
||||
updater.status() # Detect an abandoned engine job without touching an active CLI job.
|
||||
except BaseException:
|
||||
self.daemon_lock.close()
|
||||
|
||||
Reference in New Issue
Block a user