Skip to content

fix: skip same-day WorkBuddy check-in - #110

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/skip-same-day-checkin
Sep 7, 2026
Merged

fix: skip same-day WorkBuddy check-in#110
caigee-cmd merged 1 commit into
mainfrom
fix/skip-same-day-checkin

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Skip scheduled and manual WorkBuddy check-in for the rest of the process-local calendar day after a success or already result, so 09:00 / 21:00 slots do not hit upstream again or append history rows.
  • Classify HTTP 400 bodies that say the account already checked in as already, not a generic failure. Same-day error still retries in the evening slot.

Test plan

  • go test ./internal/accounts ./internal/providers/workbuddy
  • After merge, confirm a midnight success is not followed by morning/evening “failed / already checked in” rows

…0 as success

Do not call upstream or append a history row after a local-day success or already result. Classify HTTP 400 "already checked in" as already instead of a failure so evening retries stop filling the log.
@caigee-cmd
caigee-cmd merged commit a990b90 into main Sep 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant