kin: KIN-099 Pipeline watchdog: при запуске pipeline сохранять PID subprocess в БД (поле pid в pipelines или отдельная таблица). Фоновый процесс (или cron каждые 30 секунд) проверяет: если PID мёртв а задача всё ещё in_progress — ставить blocked с причиной 'Process died unexpectedly (PID XXXX)'. GUI показывает уведомление. Также: на каждом шаге pipeline проверять что parent process жив. Это решает проблему 'задача висит in_progress но процесс давно мёртв'
This commit is contained in:
parent
0763f3a531
commit
83f960ad67
1 changed files with 4 additions and 6 deletions
|
|
@ -207,12 +207,10 @@ class TestBlockedReasonPropagation:
|
|||
|
||||
assert result["success"] is False
|
||||
|
||||
# BUG VERIFIED: result['error'] is the generic message, not the worker error
|
||||
expected_generic = "Department backend_head sub-pipeline failed"
|
||||
assert result["error"] == expected_generic, (
|
||||
f"Expected generic error '{expected_generic}', "
|
||||
f"got '{result.get('error')}'. "
|
||||
"If this fails, Issue 1 has been fixed — update this test!"
|
||||
# FIXED (KIN-ARCH-014): result['error'] now contains output context, not just generic msg
|
||||
assert "Department backend_head sub-pipeline failed" in result["error"], (
|
||||
f"Expected 'Department backend_head sub-pipeline failed' prefix in error, "
|
||||
f"got: {result.get('error')!r}"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue