You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/readQueues.ts
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -275,8 +275,8 @@ export async function readQueuesRoute(app: FastifyInstance) {
275
275
'/rerun-by-worker',
276
276
{
277
277
schema: {
278
-
summary: 'Re-run all jobs that match a given worker name',
279
-
description: 'Re-runs all jobs across one or more queues whose data.runOnly[] contains the specified worker name. Defaults to completed and failed jobs.',
278
+
summary: 'Re-run all jobs that match a given worker name (using rerun-and-save)',
279
+
description: 'Re-runs all jobs across one or more queues whose data.runOnly[] contains the specified worker name using the rerun-and-save approach (finds original EXTRACT_EMISSIONS job and creates new one with specified scopes). Defaults to completed and failed jobs.',
280
280
tags: ['Queues'],
281
281
body: rerunJobsByWorkerBodySchema,
282
282
response: {
@@ -293,11 +293,12 @@ export async function readQueuesRoute(app: FastifyInstance) {
workerName: z.string().describe('Name of the worker / pipeline step to re-run (e.g. "scope1+2")'),
42
42
statuses: z.array(jobStatusSchema).optional().describe('Optional list of job statuses to consider (defaults to completed and failed jobs)'),
43
43
queues: z.array(z.string()).optional().describe('Optional list of queue names to restrict the rerun to (defaults to all known queues)'),
44
+
limit: z.union([z.number(),z.literal('all')]).optional().default(5).describe('Maximum number of companies to rerun (defaults to 5). Use "all" to rerun all companies.'),
0 commit comments