kin: auto-commit after pipeline
This commit is contained in:
parent
0a5f58b7fe
commit
e7e0342aeb
2 changed files with 7 additions and 7 deletions
|
|
@ -95,7 +95,7 @@ def test_watchdog_alive_pid_no_change(tmp_path):
|
|||
pipeline_row = conn.execute("SELECT status FROM pipelines WHERE id=?", (pipeline_id,)).fetchone()
|
||||
conn.close()
|
||||
|
||||
assert task["status"] != "blocked"
|
||||
assert task["status"] == "pending"
|
||||
assert pipeline_row["status"] == "running"
|
||||
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ def test_watchdog_pipeline_without_pid_skipped(tmp_path):
|
|||
task = models.get_task(conn, tid)
|
||||
conn.close()
|
||||
|
||||
assert task["status"] != "blocked"
|
||||
assert task["status"] == "pending"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
@ -356,7 +356,7 @@ def test_check_dead_pipelines_permission_error_ignored(tmp_path):
|
|||
).fetchone()
|
||||
conn.close()
|
||||
|
||||
assert task["status"] != "blocked"
|
||||
assert task["status"] == "pending"
|
||||
assert pipeline_row["status"] == "running"
|
||||
|
||||
|
||||
|
|
@ -379,7 +379,7 @@ def test_check_parent_alive_eacces_does_not_abort(conn):
|
|||
assert result is False
|
||||
|
||||
task = models.get_task(conn, "VDOL-001")
|
||||
assert task["status"] != "blocked"
|
||||
assert task["status"] == "pending"
|
||||
|
||||
|
||||
def test_check_parent_alive_process_lookup_error_aborts(conn):
|
||||
|
|
@ -456,5 +456,5 @@ def test_check_dead_pipelines_kill_succeeds_no_change(tmp_path):
|
|||
).fetchone()
|
||||
conn.close()
|
||||
|
||||
assert task["status"] != "blocked"
|
||||
assert task["status"] == "pending"
|
||||
assert pipeline_row["status"] == "running"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue