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
|
assert result["success"] is False
|
||||||
|
|
||||||
# BUG VERIFIED: result['error'] is the generic message, not the worker error
|
# FIXED (KIN-ARCH-014): result['error'] now contains output context, not just generic msg
|
||||||
expected_generic = "Department backend_head sub-pipeline failed"
|
assert "Department backend_head sub-pipeline failed" in result["error"], (
|
||||||
assert result["error"] == expected_generic, (
|
f"Expected 'Department backend_head sub-pipeline failed' prefix in error, "
|
||||||
f"Expected generic error '{expected_generic}', "
|
f"got: {result.get('error')!r}"
|
||||||
f"got '{result.get('error')}'. "
|
|
||||||
"If this fails, Issue 1 has been fixed — update this test!"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue