kin: auto-commit after pipeline
This commit is contained in:
parent
bf635f16ff
commit
12d95b2e13
4 changed files with 318 additions and 9 deletions
|
|
@ -660,6 +660,14 @@ def _migrate(conn: sqlite3.Connection):
|
|||
)
|
||||
conn.commit()
|
||||
|
||||
# Fix orphaned dept_sub pipelines left in 'running' state due to double-create bug
|
||||
# (KIN-ARCH-012): before the fix, _execute_department_head_step created a pipeline
|
||||
# that was never updated, leaving ghost 'running' records in prod DB.
|
||||
conn.execute(
|
||||
"UPDATE pipelines SET status = 'failed' WHERE route_type = 'dept_sub' AND status = 'running'"
|
||||
)
|
||||
conn.commit()
|
||||
|
||||
|
||||
def _seed_default_hooks(conn: sqlite3.Connection):
|
||||
"""Seed default hooks for the kin project (idempotent).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue