Skip to content

feat(pickups): hint the wait on a run_cooldown refusal - #8

Open
dejanstrbac wants to merge 1 commit into
mainfrom
pickup-run-cooldown
Open

dejanstrbac wants to merge 1 commit into
mainfrom
pickup-run-cooldown

Conversation

@dejanstrbac

Copy link
Copy Markdown
Contributor

Core PR Open-Email/core#35 refuses a manual pickup run within a minute of the last dispatch (scheduled or manual) with 429 run_cooldown and a retryAfter in the body, because each run is one POP3 login at the customer's provider and providers count those.

openemail pickups run (and the TUI's R) printed run_cooldown (HTTP 429) with retryAfter: 41 as a bare extra line. This adds an errorHint case: "this source was dispatched less than a minute ago, and a run in flight already collects whatever is new; try again in 41 s", with a no-number fallback, and documents the status on RunPickup.

Checks: gofmt -l, go vet and go test ./internal/cli -run TestErrorHint pass, with two new cases.

🤖 Generated with Claude Code

Core (PR #35) refuses a manual pickup run within a minute of the last
dispatch with 429 run_cooldown, because each run is one POP3 login at the
customer's provider and providers count those. `openemail pickups run`
printed "run_cooldown (HTTP 429)" with the retryAfter as a bare extra.
Add the errorHint case naming the wait in seconds, and note the status on
RunPickup.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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