feat: add campaign copying scheduling and residual handling
This commit is contained in:
@@ -240,6 +240,7 @@ def test_process_loss_orphan_is_deleted_once_and_same_request_replays(
|
||||
def test_competing_node_cannot_acquire_cleanup_authority(
|
||||
recovery_session_factory,
|
||||
) -> None:
|
||||
lease_observed_at = datetime.now(timezone.utc)
|
||||
with recovery_session_factory() as session:
|
||||
claim = acquire_lease(
|
||||
session,
|
||||
@@ -248,7 +249,7 @@ def test_competing_node_cannot_acquire_cleanup_authority(
|
||||
holder_node_id="node-other",
|
||||
holder_incarnation="run-other",
|
||||
ttl_seconds=900,
|
||||
now=NOW,
|
||||
now=lease_observed_at,
|
||||
)
|
||||
assert claim is not None
|
||||
session.commit()
|
||||
|
||||
Reference in New Issue
Block a user