Skip to content

Commit cdabe1e

Browse files
committed
Remove v3.resumeTaskRunDependencies job as it's no longer used
1 parent 42c3f51 commit cdabe1e

File tree

4 files changed

+4
-145
lines changed

4 files changed

+4
-145
lines changed

apps/webapp/app/services/worker.server.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { ExpireEnqueuedRunService } from "~/v3/services/expireEnqueuedRun.server
2525
import { IndexDeploymentService } from "~/v3/services/indexDeployment.server";
2626
import { ResumeBatchRunService } from "~/v3/services/resumeBatchRun.server";
2727
import { ResumeTaskDependencyService } from "~/v3/services/resumeTaskDependency.server";
28-
import { ResumeTaskRunDependenciesService } from "~/v3/services/resumeTaskRunDependencies.server";
2928
import { RetryAttemptService } from "~/v3/services/retryAttempt.server";
3029
import { TimeoutDeploymentService } from "~/v3/services/timeoutDeployment.server";
3130
import { GraphileMigrationHelperService } from "./db/graphileMigrationHelper.server";
@@ -40,10 +39,6 @@ const workerCatalog = {
4039
id: z.string(),
4140
}),
4241
// @deprecated, moved to commonWorker.server.ts
43-
"v3.resumeTaskRunDependencies": z.object({
44-
attemptId: z.string(),
45-
}),
46-
// @deprecated, moved to commonWorker.server.ts
4742
"v3.resumeBatchRun": z.object({
4843
batchRunId: z.string(),
4944
}),
@@ -185,16 +180,6 @@ function getWorkerQueue() {
185180
},
186181
},
187182
// @deprecated, moved to commonWorker.server.ts
188-
"v3.resumeTaskRunDependencies": {
189-
priority: 0,
190-
maxAttempts: 5,
191-
handler: async (payload, job) => {
192-
const service = new ResumeTaskRunDependenciesService();
193-
194-
return await service.call(payload.attemptId);
195-
},
196-
},
197-
// @deprecated, moved to commonWorker.server.ts
198183
"v3.resumeBatchRun": {
199184
priority: 0,
200185
maxAttempts: 5,

apps/webapp/app/v3/commonWorker.server.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { ExecuteTasksWaitingForDeployService } from "./services/executeTasksWait
1818
import { ExpireEnqueuedRunService } from "./services/expireEnqueuedRun.server";
1919
import { ResumeBatchRunService } from "./services/resumeBatchRun.server";
2020
import { ResumeTaskDependencyService } from "./services/resumeTaskDependency.server";
21-
import { ResumeTaskRunDependenciesService } from "./services/resumeTaskRunDependencies.server";
2221
import { RetryAttemptService } from "./services/retryAttempt.server";
2322
import { TimeoutDeploymentService } from "./services/timeoutDeployment.server";
2423

@@ -46,15 +45,6 @@ function initializeWorker() {
4645
maxAttempts: 3,
4746
},
4847
},
49-
"v3.resumeTaskRunDependencies": {
50-
schema: z.object({
51-
attemptId: z.string(),
52-
}),
53-
visibilityTimeoutMs: 60_000,
54-
retry: {
55-
maxAttempts: 5,
56-
},
57-
},
5848
"v3.resumeBatchRun": {
5949
schema: z.object({
6050
batchRunId: z.string(),
@@ -211,10 +201,6 @@ function initializeWorker() {
211201
scheduleEmail: async ({ payload }) => {
212202
await sendEmail(payload);
213203
},
214-
"v3.resumeTaskRunDependencies": async ({ payload }) => {
215-
const service = new ResumeTaskRunDependenciesService();
216-
await service.call(payload.attemptId);
217-
},
218204
"v3.resumeBatchRun": async ({ payload }) => {
219205
const service = new ResumeBatchRunService();
220206
await service.call(payload.batchRunId);

apps/webapp/app/v3/services/resumeTaskRunDependencies.server.ts

Lines changed: 0 additions & 110 deletions
This file was deleted.

packages/redis-worker/src/worker.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { createRedisClient, Redis, type RedisOptions } from "@internal/redis";
12
import {
23
Attributes,
34
Histogram,
45
Meter,
56
metrics,
67
ObservableResult,
7-
SemanticAttributes,
88
SpanKind,
99
startSpan,
1010
trace,
@@ -14,13 +14,11 @@ import {
1414
import { Logger } from "@trigger.dev/core/logger";
1515
import { calculateNextRetryDelay } from "@trigger.dev/core/v3";
1616
import { type RetryOptions } from "@trigger.dev/core/v3/schemas";
17-
import { Redis, type RedisOptions } from "@internal/redis";
18-
import { z } from "zod";
19-
import { AnyQueueItem, SimpleQueue } from "./queue.js";
17+
import { shutdownManager } from "@trigger.dev/core/v3/serverOnly";
2018
import { nanoid } from "nanoid";
2119
import pLimit from "p-limit";
22-
import { createRedisClient } from "@internal/redis";
23-
import { shutdownManager } from "@trigger.dev/core/v3/serverOnly";
20+
import { z } from "zod";
21+
import { AnyQueueItem, SimpleQueue } from "./queue.js";
2422

2523
export type WorkerCatalog = {
2624
[key: string]: {

0 commit comments

Comments
 (0)