fix: prevent duplicate scheduled clockins and repair Bark notifications #7
No reviewers
Labels
No labels
bug
codex
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
yingmo/Apparition!7
Loading…
Reference in a new issue
No description provided.
Delete branch "codex"
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?
Motivation
Description
runDateanddedupeKeyto scheduled tasks and maintain an in-memorypendingRunsmap withreserveScheduledRun/releaseScheduledRunguarded byrunDedupeMu.submitScheduledRun, and release the dedupe entry when the run finishes or is aborted.startup_recoverythrough the scheduler queue (usesubmitScheduledRun) instead of executing immediately to reuse dedupe logic.executeClockinRunForDate) to skip runs when a successful scheduled run for the samerun_datealready exists and return askippedstatus./pushAPI withPOST, validatedevice_key, support a default Bark server URL, and surface Bark API error codes/messages.internal/server/scheduler_test.go(queue dedupe and skip-on-existing-success) andinternal/server/notification_test.go(Bark JSON payload), and makeinternal/core/service_test.goself-contained by writing a tempconfig.json.Testing
go test ./...and all package tests passed; the added tests exercise scheduler dedupe and Bark JSON behavior. (success)go build ./...to verify the project compiles after changes. (success)Codex Task
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.