be explicit about only returning managed deployments
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 11m2s
🚀 Publish Trigger.dev Docker / publish-webapp (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-worker (push) Has been skipped
🚀 Publish Trigger.dev Docker / units (push) Failing after 14m3s

This commit is contained in:
nicktrn
2025-04-14 12:19:22 +01:00
parent 3238514124
commit 14436d8d4c
@@ -100,7 +100,7 @@ export async function getRunWithBackgroundWorkerTasks(
} else {
workerWithTasks = workerId
? await getWorkerDeploymentFromWorker(prisma, workerId)
: await getWorkerFromCurrentlyPromotedDeployment(prisma, run.runtimeEnvironmentId);
: await getManagedWorkerFromCurrentlyPromotedDeployment(prisma, run.runtimeEnvironmentId);
}
if (!workerWithTasks) {
@@ -260,7 +260,7 @@ export async function getWorkerById(
return { worker, tasks: worker.tasks, queues: worker.queues, deployment: worker.deployment };
}
export async function getWorkerFromCurrentlyPromotedDeployment(
export async function getManagedWorkerFromCurrentlyPromotedDeployment(
prisma: PrismaClientOrTransaction,
environmentId: string
): Promise<WorkerDeploymentWithWorkerTasks | null> {