feat: expose campaign status and cancellation - #2
Open
Matthew-Selvam wants to merge 15 commits into
Open
Matthew-Selvam wants to merge 15 commits into
Matthew-Selvam wants to merge 15 commits into
Conversation
'21:00+05:30' (15:30Z) sorts lexicographically AFTER '16:00+00:00', so a schedule written in any non-UTC offset either never fired or fired early. Parse both sides to epoch before comparing; unparseable scheduled_for is treated as due so the worker surfaces it instead of dead-ending the row.
A /dispatch to N platforms fans out under one unit_id but the rows were only visible individually. cancel_campaign flips every still-queued row of a campaign to 'canceled' (publishing/published rows are never touched): one guarded UPDATE..RETURNING on Postgres, status-checked read-modify-write on Redis and JSONL. QueueProtocol extended.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary\n- add campaign status and cancellation API endpoints\n- add CLI and MCP campaign controls\n- prevent canceled rows from retry paths and expose canceled status in the UI\n- document the timezone comparison fix and campaign behavior\n\n## Verification\n- ........................................................................ [ 42%]
........................................................................ [ 84%]
........................... [100%] — 169 passed\n- \n- \n\nFixes campaign queue follow-up from the existing queue backend work.