kin: auto-commit after pipeline
This commit is contained in:
parent
96047f3525
commit
8fa2cc266c
3 changed files with 11 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ Kin agent runner — launches Claude Code as subprocess with role-specific conte
|
|||
Each agent = separate process with isolated context.
|
||||
"""
|
||||
|
||||
import errno as _errno
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
|
|
@ -1175,7 +1176,6 @@ def _execute_department_head_step(
|
|||
# Watchdog helpers
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
import errno as _errno
|
||||
|
||||
|
||||
def _check_parent_alive(
|
||||
|
|
@ -1266,8 +1266,7 @@ def run_pipeline(
|
|||
department=department,
|
||||
)
|
||||
# Save PID so watchdog can detect dead subprocesses (KIN-099)
|
||||
models.update_pipeline(conn, pipeline["id"], pid=os.getpid())
|
||||
pipeline["pid"] = os.getpid()
|
||||
pipeline = models.update_pipeline(conn, pipeline["id"], pid=os.getpid())
|
||||
models.update_task(conn, task_id, status="in_progress")
|
||||
|
||||
results = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue