Skip to content

Refactor Polling Loop into State Machine in JobSubmissionStore

The current polling loop at src/features/jobs/stores/JobSubmissionStore.ts:120 should be refactored into a state machine that explicitly models the transitions between pending, success, and failure states. This will improve readability, maintainability, and provide clearer handling of different polling outcomes.