fix: defer background cleanup until pending display is confirmed
Community checks / verify (push) Skipped
Verify Frame Flow / verify (push) Successful in 7m44s

This commit is contained in:
渡口浪人
2026-10-18 20:32:37 +08:00
parent a2e8a204e8
commit 28e971c0ff
5 changed files with 40 additions and 15 deletions
+2
View File
@@ -37,6 +37,8 @@ def due(service, image_id):
"UPDATE image_retention SET expires_at=? WHERE image_id=?",
((datetime.now(UTC) - timedelta(days=1)).isoformat(), image_id),
)
# Complete the upload before simulating expiry days later and switching away.
service.sync()
# The test driver switches to a different image, not a real device.
driver = service.registry.get("living-room")
driver.display(1)