chore: tighten scheduling review coverage

This commit is contained in:
lda
2026-09-09 21:50:24 +07:00 Verified
parent afb291d55c
commit 2ecdbdaa7f
17 changed files with 358 additions and 366 deletions
+4 -2
View File
@@ -40,7 +40,9 @@ def _api(root: Path) -> tuple[WorkflowRunApi, FileRunStore]:
return WorkflowRunApi(context), context.run_store
def test_resume_marks_active_attempt_with_store_backed_id(tmp_path: Path) -> None:
def test_resume_attempt_ids_are_monotonic_across_store_instances(
tmp_path: Path,
) -> None:
api, store = _api(tmp_path / "resume-marker")
started = asyncio.run(
api.run_deployment(deployment_id="echo.personal", workflow_input={"text": "hi"})
@@ -55,7 +57,7 @@ def test_resume_marks_active_attempt_with_store_backed_id(tmp_path: Path) -> Non
assert second == first + 1
def test_active_attempt_blocks_second_resume(tmp_path: Path) -> None:
def test_active_attempt_marker_is_durable(tmp_path: Path) -> None:
from datetime import UTC, datetime
from wf_artifacts.runs.models import ResumeAttempt