refactor(multi-server): add flag to queues

This commit is contained in:
Mauricio Siu
2024-09-21 21:57:53 -06:00
parent 069f1a7b7a
commit 82588f3e16
5 changed files with 5 additions and 2 deletions

View File

@@ -187,12 +187,14 @@ export const composeRouter = createTRPCRouter({
redeploy: protectedProcedure
.input(apiFindCompose)
.mutation(async ({ input }) => {
const compose = await findComposeById(input.composeId);
const jobData: DeploymentJob = {
composeId: input.composeId,
titleLog: "Rebuild deployment",
type: "redeploy",
applicationType: "compose",
descriptionLog: "",
server: !!compose.serverId,
};
await myQueue.add(
"deployments",