Skip to content

Promotion lease: due posts first, re-checks rotate - #29

Merged
ralyodio merged 1 commit into
mainfrom
fix/lease-starvation
Oct 17, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/lease-starvation

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Found live: every myna network here (LinkedIn, Bluesky, Mastodon) is at its 12/day cap until about Nov 1, so campaign posts sit in scheduled for days. The lease ordered by planned_at with a batch of 5, so once more than 5 posts were scheduled it would only ever re-check those and never hand myna the newly due ones. Now due posts come first, re-checks go least-recently-checked first, and the batch is 20 (max 50). There is a test.

🤖 Generated with Claude Code

…tch of 20

A post myna holds for weeks (every network here is at its daily cap until Nov 1) was re-leased ahead of
newly due posts, so more than five of them would have starved the calendar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 5190daf into main Oct 17, 2026
4 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