Fix routine run assignment wakeups

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta 2026-03-20 08:58:24 -05:00
parent 2d8c8abbfb
commit 5b1e1239fd
4 changed files with 37 additions and 7 deletions

View file

@ -619,7 +619,8 @@ export function routineService(db: Db, deps: { heartbeat?: IssueAssignmentWakeup
status: "issue_created",
linkedIssueId: createdIssue.id,
});
queueIssueAssignmentWakeup({
// Ensure the wake request is durably queued before reporting the routine run as created.
await queueIssueAssignmentWakeup({
heartbeat,
issue: createdIssue,
reason: "issue_assigned",