Implement interruptible work with state persistence #112

Open
opened 2025-12-17 03:26:19 +00:00 by siennathesane · 0 comments
siennathesane commented 2025-12-17 03:26:19 +00:00 (Migrated from github.com)

Description

Baker can pause kneading to serve customer, resume later.

Acceptance Criteria

Scenario: Interruptible work works
  Given worker is performing multi-phase task
  When interruption occurs
  Then current phase state is saved
  And worker performs interrupting task
  And worker can resume saved phase later
  And batch quality is not degraded by interruption

Technical Notes

  • Save phase state: batch entity, phase index, progress percentage
  • Interruption triggers: urgent needs, customer arrival, schedule block end
  • Resume triggers: return to work, schedule block for same recipe
  • State limits: some phases can't be interrupted (baking can't pause)
  • Degradation: long interruptions may degrade batch (proof over-rises)

Size: S (2 points)
Priority: P2
Phase: 10 - Production Workflows

## Description Baker can pause kneading to serve customer, resume later. ## Acceptance Criteria ```gherkin Scenario: Interruptible work works Given worker is performing multi-phase task When interruption occurs Then current phase state is saved And worker performs interrupting task And worker can resume saved phase later And batch quality is not degraded by interruption ``` ## Technical Notes - Save phase state: batch entity, phase index, progress percentage - Interruption triggers: urgent needs, customer arrival, schedule block end - Resume triggers: return to work, schedule block for same recipe - State limits: some phases can't be interrupted (baking can't pause) - Degradation: long interruptions may degrade batch (proof over-rises) **Size:** S (2 points) **Priority:** P2 **Phase:** 10 - Production Workflows
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: studio/marathon#112