Skip to content

Commit

Permalink
fix: Remove createREleaseVariable in dispatch runbo
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Nov 18, 2024
1 parent 1824270 commit 1dd153f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/job-dispatch/src/job-dispatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,5 @@ export const dispatchRunbook = async (
.where(eq(schema.runbook.id, runbookId))
.then(takeFirst);
const job = await createTriggeredRunbookJob(db, runbook, values);
await createReleaseVariables(db, job.id)
.then(() => dispatchJobsQueue.add(job.id, { jobId: job.id }))
.catch((error) =>
db
.update(schema.job)
.set({
status: JobStatus.Failure,
message: `Failed to create release variables: ${error.message}`,
})
.where(eq(schema.job.id, job.id)),
);
return job;
};

0 comments on commit 1dd153f

Please sign in to comment.