chore: tighten scheduling review coverage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user