feat(dispenser): add worker-owned idle card prestaging

This commit is contained in:
2026-09-29 18:58:26 +01:00
parent b9b2a524dd
commit aef1bbbe57
9 changed files with 1005 additions and 29 deletions
+3
View File
@@ -59,6 +59,9 @@ func (app *App) testIssueDoorCard(w http.ResponseWriter, r *http.Request) {
// Ensure dispenser ready (card at encoder) BEFORE we attempt encoding.
// With queued dispenser ops, this will not clash with polling.
release := app.disp.BeginForeground()
defer release()
status, err := app.disp.PrepareCurrentCard(r.Context())
app.SetCardWellStatus(status)
if err != nil {