Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
parent
397a2b4d58
commit
68475922bb
15 changed files with 437 additions and 50 deletions
|
|
@ -74,10 +74,13 @@ class Service:
|
|||
def _deliver_once(self) -> None:
|
||||
for endpoint in self.store.endpoints():
|
||||
repos = json.loads(endpoint["repos"])
|
||||
control = ControlModeClient(endpoint["session"])
|
||||
if not control.session_exists(expected_pid=int(endpoint["pid"])):
|
||||
self.store.disconnect_endpoint(endpoint["endpoint_id"])
|
||||
continue
|
||||
pending = [row for row in self.store.list(state="pending") if row["endpoint_id"] in (None, endpoint["endpoint_id"]) and row["target_repo"] in repos]
|
||||
if not pending:
|
||||
continue
|
||||
control = ControlModeClient(endpoint["session"])
|
||||
try:
|
||||
control.start()
|
||||
for row in pending:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue