forked from farhoodlabs/paperclip
Fix routine run assignment wakeups
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -29,7 +29,7 @@ export function queueIssueAssignmentWakeup(input: {
|
||||
}) {
|
||||
if (!input.issue.assigneeAgentId || input.issue.status === "backlog") return;
|
||||
|
||||
void input.heartbeat
|
||||
return input.heartbeat
|
||||
.wakeup(input.issue.assigneeAgentId, {
|
||||
source: "assignment",
|
||||
triggerDetail: "system",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user