Extract timer scheduling into one shared function #8
Labels
No labels
wayfinder
grilling
wayfinder
map
wayfinder
prototype
wayfinder
research
wayfinder
task
workflow
needs-info
workflow
needs-triage
workflow
ready-for-agent
workflow
ready-for-human
workflow
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rosa/tomate#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Prefactor, no user-visible change. Starting a Pomodoro, a short break, and a long break each schedule a
tomate timer checkthroughsystemd-run, and each does it with its own near-identical copy of the same block. The copies have already drifted: the break paths write the scheduler's stderr straight to stderr, while the Pomodoro path buries it in a log line, and only the Pomodoro path formats the delay as whole seconds rather than a float.Collapse the three copies into one function that the three start paths call. Behaviour stays exactly as it is today — the divergence gets fixed in the tickets that follow, in one place instead of three.
Acceptance criteria
timer checkfor all three timer kindstomate pom start,tomate short start, andtomate long starteach still schedule a timer that fires at the end of the timer's durationcargo testandcargo clippystay cleanBlocked by
None — can start immediately.