@motiadev/plugin-bullmq 0.14.0-beta.165-917560 → 0.14.0-beta.165-958021
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +1030 -1126
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -123,21 +123,17 @@ const queryClient = new QueryClient({ defaultOptions: { queries: {
|
|
|
123
123
|
retry: 1
|
|
124
124
|
} } });
|
|
125
125
|
const QueryProvider = (t0) => {
|
|
126
|
-
const $ = c(
|
|
127
|
-
if ($[0] !== "72268343e8809a517b650d94aea39cf9f299784a2a89cdc3b8e9a0d84a7244b8") {
|
|
128
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
129
|
-
$[0] = "72268343e8809a517b650d94aea39cf9f299784a2a89cdc3b8e9a0d84a7244b8";
|
|
130
|
-
}
|
|
126
|
+
const $ = c(2);
|
|
131
127
|
const { children } = t0;
|
|
132
128
|
let t1;
|
|
133
|
-
if ($[
|
|
129
|
+
if ($[0] !== children) {
|
|
134
130
|
t1 = /* @__PURE__ */ jsx(QueryClientProvider, {
|
|
135
131
|
client: queryClient,
|
|
136
132
|
children
|
|
137
133
|
});
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
} else t1 = $[
|
|
134
|
+
$[0] = children;
|
|
135
|
+
$[1] = t1;
|
|
136
|
+
} else t1 = $[1];
|
|
141
137
|
return t1;
|
|
142
138
|
};
|
|
143
139
|
|
|
@@ -162,231 +158,207 @@ const clearDLQFn = async ({ queueName }) => {
|
|
|
162
158
|
if (!(await fetch(`/__motia/bullmq/dlq/${encodeURIComponent(queueName)}/clear`, { method: "POST" })).ok) throw new Error("Failed to clear DLQ");
|
|
163
159
|
};
|
|
164
160
|
const useRetryJob = () => {
|
|
165
|
-
const $ = c(
|
|
166
|
-
if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
|
|
167
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
168
|
-
$[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
|
|
169
|
-
}
|
|
161
|
+
const $ = c(7);
|
|
170
162
|
const queryClient$1 = useQueryClient();
|
|
171
163
|
const setError = useBullMQStore(_temp$7);
|
|
172
164
|
let t0;
|
|
173
|
-
if ($[
|
|
165
|
+
if ($[0] !== queryClient$1) {
|
|
174
166
|
t0 = (_, t1$1) => {
|
|
175
167
|
const { queueName } = t1$1;
|
|
176
168
|
queryClient$1.invalidateQueries({ queryKey: ["jobs", queueName] });
|
|
177
169
|
};
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
} else t0 = $[
|
|
170
|
+
$[0] = queryClient$1;
|
|
171
|
+
$[1] = t0;
|
|
172
|
+
} else t0 = $[1];
|
|
181
173
|
let t1;
|
|
182
|
-
if ($[
|
|
174
|
+
if ($[2] !== setError) {
|
|
183
175
|
t1 = (error) => {
|
|
184
176
|
setError(error instanceof Error ? error.message : "Failed to retry job");
|
|
185
177
|
};
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
} else t1 = $[
|
|
178
|
+
$[2] = setError;
|
|
179
|
+
$[3] = t1;
|
|
180
|
+
} else t1 = $[3];
|
|
189
181
|
let t2;
|
|
190
|
-
if ($[
|
|
182
|
+
if ($[4] !== t0 || $[5] !== t1) {
|
|
191
183
|
t2 = {
|
|
192
184
|
mutationFn: retryJobFn,
|
|
193
185
|
onSuccess: t0,
|
|
194
186
|
onError: t1
|
|
195
187
|
};
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
} else t2 = $[
|
|
188
|
+
$[4] = t0;
|
|
189
|
+
$[5] = t1;
|
|
190
|
+
$[6] = t2;
|
|
191
|
+
} else t2 = $[6];
|
|
200
192
|
return useMutation(t2);
|
|
201
193
|
};
|
|
202
194
|
const useRemoveJob = () => {
|
|
203
|
-
const $ = c(
|
|
204
|
-
if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
|
|
205
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
206
|
-
$[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
|
|
207
|
-
}
|
|
195
|
+
const $ = c(7);
|
|
208
196
|
const queryClient$1 = useQueryClient();
|
|
209
197
|
const setError = useBullMQStore(_temp2$7);
|
|
210
198
|
let t0;
|
|
211
|
-
if ($[
|
|
199
|
+
if ($[0] !== queryClient$1) {
|
|
212
200
|
t0 = (_, t1$1) => {
|
|
213
201
|
const { queueName } = t1$1;
|
|
214
202
|
queryClient$1.invalidateQueries({ queryKey: ["jobs", queueName] });
|
|
215
203
|
};
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
} else t0 = $[
|
|
204
|
+
$[0] = queryClient$1;
|
|
205
|
+
$[1] = t0;
|
|
206
|
+
} else t0 = $[1];
|
|
219
207
|
let t1;
|
|
220
|
-
if ($[
|
|
208
|
+
if ($[2] !== setError) {
|
|
221
209
|
t1 = (error) => {
|
|
222
210
|
setError(error instanceof Error ? error.message : "Failed to remove job");
|
|
223
211
|
};
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
} else t1 = $[
|
|
212
|
+
$[2] = setError;
|
|
213
|
+
$[3] = t1;
|
|
214
|
+
} else t1 = $[3];
|
|
227
215
|
let t2;
|
|
228
|
-
if ($[
|
|
216
|
+
if ($[4] !== t0 || $[5] !== t1) {
|
|
229
217
|
t2 = {
|
|
230
218
|
mutationFn: removeJobFn,
|
|
231
219
|
onSuccess: t0,
|
|
232
220
|
onError: t1
|
|
233
221
|
};
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
} else t2 = $[
|
|
222
|
+
$[4] = t0;
|
|
223
|
+
$[5] = t1;
|
|
224
|
+
$[6] = t2;
|
|
225
|
+
} else t2 = $[6];
|
|
238
226
|
return useMutation(t2);
|
|
239
227
|
};
|
|
240
228
|
const usePromoteJob = () => {
|
|
241
|
-
const $ = c(
|
|
242
|
-
if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
|
|
243
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
244
|
-
$[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
|
|
245
|
-
}
|
|
229
|
+
const $ = c(7);
|
|
246
230
|
const queryClient$1 = useQueryClient();
|
|
247
231
|
const setError = useBullMQStore(_temp3$4);
|
|
248
232
|
let t0;
|
|
249
|
-
if ($[
|
|
233
|
+
if ($[0] !== queryClient$1) {
|
|
250
234
|
t0 = (_, t1$1) => {
|
|
251
235
|
const { queueName } = t1$1;
|
|
252
236
|
queryClient$1.invalidateQueries({ queryKey: ["jobs", queueName] });
|
|
253
237
|
};
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
} else t0 = $[
|
|
238
|
+
$[0] = queryClient$1;
|
|
239
|
+
$[1] = t0;
|
|
240
|
+
} else t0 = $[1];
|
|
257
241
|
let t1;
|
|
258
|
-
if ($[
|
|
242
|
+
if ($[2] !== setError) {
|
|
259
243
|
t1 = (error) => {
|
|
260
244
|
setError(error instanceof Error ? error.message : "Failed to promote job");
|
|
261
245
|
};
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
} else t1 = $[
|
|
246
|
+
$[2] = setError;
|
|
247
|
+
$[3] = t1;
|
|
248
|
+
} else t1 = $[3];
|
|
265
249
|
let t2;
|
|
266
|
-
if ($[
|
|
250
|
+
if ($[4] !== t0 || $[5] !== t1) {
|
|
267
251
|
t2 = {
|
|
268
252
|
mutationFn: promoteJobFn,
|
|
269
253
|
onSuccess: t0,
|
|
270
254
|
onError: t1
|
|
271
255
|
};
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
} else t2 = $[
|
|
256
|
+
$[4] = t0;
|
|
257
|
+
$[5] = t1;
|
|
258
|
+
$[6] = t2;
|
|
259
|
+
} else t2 = $[6];
|
|
276
260
|
return useMutation(t2);
|
|
277
261
|
};
|
|
278
262
|
const useRetryFromDLQ = () => {
|
|
279
|
-
const $ = c(
|
|
280
|
-
if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
|
|
281
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
282
|
-
$[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
|
|
283
|
-
}
|
|
263
|
+
const $ = c(7);
|
|
284
264
|
const queryClient$1 = useQueryClient();
|
|
285
265
|
const setError = useBullMQStore(_temp4$3);
|
|
286
266
|
let t0;
|
|
287
|
-
if ($[
|
|
267
|
+
if ($[0] !== queryClient$1) {
|
|
288
268
|
t0 = (_, t1$1) => {
|
|
289
269
|
const { queueName } = t1$1;
|
|
290
270
|
queryClient$1.invalidateQueries({ queryKey: ["dlq-jobs", queueName] });
|
|
291
271
|
};
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
} else t0 = $[
|
|
272
|
+
$[0] = queryClient$1;
|
|
273
|
+
$[1] = t0;
|
|
274
|
+
} else t0 = $[1];
|
|
295
275
|
let t1;
|
|
296
|
-
if ($[
|
|
276
|
+
if ($[2] !== setError) {
|
|
297
277
|
t1 = (error) => {
|
|
298
278
|
setError(error instanceof Error ? error.message : "Failed to retry from DLQ");
|
|
299
279
|
};
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
} else t1 = $[
|
|
280
|
+
$[2] = setError;
|
|
281
|
+
$[3] = t1;
|
|
282
|
+
} else t1 = $[3];
|
|
303
283
|
let t2;
|
|
304
|
-
if ($[
|
|
284
|
+
if ($[4] !== t0 || $[5] !== t1) {
|
|
305
285
|
t2 = {
|
|
306
286
|
mutationFn: retryFromDLQFn,
|
|
307
287
|
onSuccess: t0,
|
|
308
288
|
onError: t1
|
|
309
289
|
};
|
|
310
|
-
$[
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
} else t2 = $[
|
|
290
|
+
$[4] = t0;
|
|
291
|
+
$[5] = t1;
|
|
292
|
+
$[6] = t2;
|
|
293
|
+
} else t2 = $[6];
|
|
314
294
|
return useMutation(t2);
|
|
315
295
|
};
|
|
316
296
|
const useRetryAllFromDLQ = () => {
|
|
317
|
-
const $ = c(
|
|
318
|
-
if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
|
|
319
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
320
|
-
$[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
|
|
321
|
-
}
|
|
297
|
+
const $ = c(7);
|
|
322
298
|
const queryClient$1 = useQueryClient();
|
|
323
299
|
const setError = useBullMQStore(_temp5$3);
|
|
324
300
|
let t0;
|
|
325
|
-
if ($[
|
|
301
|
+
if ($[0] !== queryClient$1) {
|
|
326
302
|
t0 = (_, t1$1) => {
|
|
327
303
|
const { queueName } = t1$1;
|
|
328
304
|
queryClient$1.invalidateQueries({ queryKey: ["dlq-jobs", queueName] });
|
|
329
305
|
};
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
} else t0 = $[
|
|
306
|
+
$[0] = queryClient$1;
|
|
307
|
+
$[1] = t0;
|
|
308
|
+
} else t0 = $[1];
|
|
333
309
|
let t1;
|
|
334
|
-
if ($[
|
|
310
|
+
if ($[2] !== setError) {
|
|
335
311
|
t1 = (error) => {
|
|
336
312
|
setError(error instanceof Error ? error.message : "Failed to retry all from DLQ");
|
|
337
313
|
};
|
|
338
|
-
$[
|
|
339
|
-
$[
|
|
340
|
-
} else t1 = $[
|
|
314
|
+
$[2] = setError;
|
|
315
|
+
$[3] = t1;
|
|
316
|
+
} else t1 = $[3];
|
|
341
317
|
let t2;
|
|
342
|
-
if ($[
|
|
318
|
+
if ($[4] !== t0 || $[5] !== t1) {
|
|
343
319
|
t2 = {
|
|
344
320
|
mutationFn: retryAllFromDLQFn,
|
|
345
321
|
onSuccess: t0,
|
|
346
322
|
onError: t1
|
|
347
323
|
};
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
} else t2 = $[
|
|
324
|
+
$[4] = t0;
|
|
325
|
+
$[5] = t1;
|
|
326
|
+
$[6] = t2;
|
|
327
|
+
} else t2 = $[6];
|
|
352
328
|
return useMutation(t2);
|
|
353
329
|
};
|
|
354
330
|
const useClearDLQ = () => {
|
|
355
|
-
const $ = c(
|
|
356
|
-
if ($[0] !== "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177") {
|
|
357
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
358
|
-
$[0] = "dda4e584b854b7387aa6e222ff1915ce152f6bfdf2fc4ff1beda4b29692e9177";
|
|
359
|
-
}
|
|
331
|
+
const $ = c(7);
|
|
360
332
|
const queryClient$1 = useQueryClient();
|
|
361
333
|
const setError = useBullMQStore(_temp6$1);
|
|
362
334
|
let t0;
|
|
363
|
-
if ($[
|
|
335
|
+
if ($[0] !== queryClient$1) {
|
|
364
336
|
t0 = (_, t1$1) => {
|
|
365
337
|
const { queueName } = t1$1;
|
|
366
338
|
queryClient$1.invalidateQueries({ queryKey: ["dlq-jobs", queueName] });
|
|
367
339
|
};
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
} else t0 = $[
|
|
340
|
+
$[0] = queryClient$1;
|
|
341
|
+
$[1] = t0;
|
|
342
|
+
} else t0 = $[1];
|
|
371
343
|
let t1;
|
|
372
|
-
if ($[
|
|
344
|
+
if ($[2] !== setError) {
|
|
373
345
|
t1 = (error) => {
|
|
374
346
|
setError(error instanceof Error ? error.message : "Failed to clear DLQ");
|
|
375
347
|
};
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
} else t1 = $[
|
|
348
|
+
$[2] = setError;
|
|
349
|
+
$[3] = t1;
|
|
350
|
+
} else t1 = $[3];
|
|
379
351
|
let t2;
|
|
380
|
-
if ($[
|
|
352
|
+
if ($[4] !== t0 || $[5] !== t1) {
|
|
381
353
|
t2 = {
|
|
382
354
|
mutationFn: clearDLQFn,
|
|
383
355
|
onSuccess: t0,
|
|
384
356
|
onError: t1
|
|
385
357
|
};
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
} else t2 = $[
|
|
358
|
+
$[4] = t0;
|
|
359
|
+
$[5] = t1;
|
|
360
|
+
$[6] = t2;
|
|
361
|
+
} else t2 = $[6];
|
|
390
362
|
return useMutation(t2);
|
|
391
363
|
};
|
|
392
364
|
function _temp$7(state) {
|
|
@@ -430,88 +402,80 @@ const fetchDLQJobs = async (queueName, start = 0, end = 100) => {
|
|
|
430
402
|
return (await response.json()).jobs;
|
|
431
403
|
};
|
|
432
404
|
const useJobsQuery = () => {
|
|
433
|
-
const $ = c(
|
|
434
|
-
if ($[0] !== "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42") {
|
|
435
|
-
for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
436
|
-
$[0] = "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42";
|
|
437
|
-
}
|
|
405
|
+
const $ = c(13);
|
|
438
406
|
const selectedQueue = useBullMQStore(_temp$6);
|
|
439
407
|
const selectedStatus = useBullMQStore(_temp2$6);
|
|
440
408
|
const queueName = selectedQueue?.name;
|
|
441
409
|
let t0;
|
|
442
|
-
if ($[
|
|
410
|
+
if ($[0] !== selectedQueue) {
|
|
443
411
|
t0 = selectedQueue ? JSON.stringify(selectedQueue.stats) : null;
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
} else t0 = $[
|
|
412
|
+
$[0] = selectedQueue;
|
|
413
|
+
$[1] = t0;
|
|
414
|
+
} else t0 = $[1];
|
|
447
415
|
const statsKey = t0;
|
|
448
416
|
let t1;
|
|
449
|
-
if ($[
|
|
417
|
+
if ($[2] !== queueName || $[3] !== selectedStatus || $[4] !== statsKey) {
|
|
450
418
|
t1 = [
|
|
451
419
|
"jobs",
|
|
452
420
|
queueName,
|
|
453
421
|
selectedStatus,
|
|
454
422
|
statsKey
|
|
455
423
|
];
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
} else t1 = $[
|
|
424
|
+
$[2] = queueName;
|
|
425
|
+
$[3] = selectedStatus;
|
|
426
|
+
$[4] = statsKey;
|
|
427
|
+
$[5] = t1;
|
|
428
|
+
} else t1 = $[5];
|
|
461
429
|
let t2;
|
|
462
|
-
if ($[
|
|
430
|
+
if ($[6] !== queueName || $[7] !== selectedStatus) {
|
|
463
431
|
t2 = () => fetchJobs(queueName, selectedStatus);
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
} else t2 = $[
|
|
432
|
+
$[6] = queueName;
|
|
433
|
+
$[7] = selectedStatus;
|
|
434
|
+
$[8] = t2;
|
|
435
|
+
} else t2 = $[8];
|
|
468
436
|
const t3 = !!queueName;
|
|
469
437
|
let t4;
|
|
470
|
-
if ($[
|
|
438
|
+
if ($[9] !== t1 || $[10] !== t2 || $[11] !== t3) {
|
|
471
439
|
t4 = {
|
|
472
440
|
queryKey: t1,
|
|
473
441
|
queryFn: t2,
|
|
474
442
|
enabled: t3,
|
|
475
443
|
staleTime: 5e3
|
|
476
444
|
};
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
} else t4 = $[
|
|
445
|
+
$[9] = t1;
|
|
446
|
+
$[10] = t2;
|
|
447
|
+
$[11] = t3;
|
|
448
|
+
$[12] = t4;
|
|
449
|
+
} else t4 = $[12];
|
|
482
450
|
return useQuery(t4);
|
|
483
451
|
};
|
|
484
452
|
const useDLQJobsQuery = (queueName) => {
|
|
485
|
-
const $ = c(
|
|
486
|
-
if ($[0] !== "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42") {
|
|
487
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
488
|
-
$[0] = "62345f058f3013b9a25310d4c1435bcda4709648cddbee0fee4472c79e98da42";
|
|
489
|
-
}
|
|
453
|
+
const $ = c(7);
|
|
490
454
|
let t0;
|
|
491
455
|
let t1;
|
|
492
|
-
if ($[
|
|
456
|
+
if ($[0] !== queueName) {
|
|
493
457
|
t0 = ["dlq-jobs", queueName];
|
|
494
458
|
t1 = () => fetchDLQJobs(queueName);
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
459
|
+
$[0] = queueName;
|
|
460
|
+
$[1] = t0;
|
|
461
|
+
$[2] = t1;
|
|
498
462
|
} else {
|
|
499
|
-
t0 = $[
|
|
500
|
-
t1 = $[
|
|
463
|
+
t0 = $[1];
|
|
464
|
+
t1 = $[2];
|
|
501
465
|
}
|
|
502
466
|
const t2 = !!queueName;
|
|
503
467
|
let t3;
|
|
504
|
-
if ($[
|
|
468
|
+
if ($[3] !== t0 || $[4] !== t1 || $[5] !== t2) {
|
|
505
469
|
t3 = {
|
|
506
470
|
queryKey: t0,
|
|
507
471
|
queryFn: t1,
|
|
508
472
|
enabled: t2
|
|
509
473
|
};
|
|
510
|
-
$[
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
} else t3 = $[
|
|
474
|
+
$[3] = t0;
|
|
475
|
+
$[4] = t1;
|
|
476
|
+
$[5] = t2;
|
|
477
|
+
$[6] = t3;
|
|
478
|
+
} else t3 = $[6];
|
|
515
479
|
return useQuery(t3);
|
|
516
480
|
};
|
|
517
481
|
function _temp$6(state) {
|
|
@@ -524,19 +488,15 @@ function _temp2$6(state_0) {
|
|
|
524
488
|
//#endregion
|
|
525
489
|
//#region src/components/dlq-panel.tsx
|
|
526
490
|
const DLQJobDetailContent = memo((t0) => {
|
|
527
|
-
const $ = c(
|
|
528
|
-
if ($[0] !== "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a") {
|
|
529
|
-
for (let $i = 0; $i < 30; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
530
|
-
$[0] = "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a";
|
|
531
|
-
}
|
|
491
|
+
const $ = c(29);
|
|
532
492
|
const { job, onRetry } = t0;
|
|
533
493
|
let t1;
|
|
534
|
-
if ($[
|
|
494
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
535
495
|
t1 = /* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" });
|
|
536
|
-
$[
|
|
537
|
-
} else t1 = $[
|
|
496
|
+
$[0] = t1;
|
|
497
|
+
} else t1 = $[0];
|
|
538
498
|
let t2;
|
|
539
|
-
if ($[
|
|
499
|
+
if ($[1] !== onRetry) {
|
|
540
500
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
541
501
|
className: "flex gap-2",
|
|
542
502
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
@@ -546,83 +506,83 @@ const DLQJobDetailContent = memo((t0) => {
|
|
|
546
506
|
children: [t1, "Retry"]
|
|
547
507
|
})
|
|
548
508
|
});
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
} else t2 = $[
|
|
509
|
+
$[1] = onRetry;
|
|
510
|
+
$[2] = t2;
|
|
511
|
+
} else t2 = $[2];
|
|
552
512
|
let t3;
|
|
553
|
-
if ($[
|
|
513
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
554
514
|
t3 = /* @__PURE__ */ jsx("span", {
|
|
555
515
|
className: "text-muted-foreground",
|
|
556
516
|
children: "Job ID"
|
|
557
517
|
});
|
|
558
|
-
$[
|
|
559
|
-
} else t3 = $[
|
|
518
|
+
$[3] = t3;
|
|
519
|
+
} else t3 = $[3];
|
|
560
520
|
let t4;
|
|
561
|
-
if ($[
|
|
521
|
+
if ($[4] !== job.id) {
|
|
562
522
|
t4 = /* @__PURE__ */ jsxs("div", { children: [t3, /* @__PURE__ */ jsx("div", {
|
|
563
523
|
className: "font-mono text-xs",
|
|
564
524
|
children: job.id
|
|
565
525
|
})] });
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
} else t4 = $[
|
|
526
|
+
$[4] = job.id;
|
|
527
|
+
$[5] = t4;
|
|
528
|
+
} else t4 = $[5];
|
|
569
529
|
let t5;
|
|
570
|
-
if ($[
|
|
530
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
571
531
|
t5 = /* @__PURE__ */ jsx("span", {
|
|
572
532
|
className: "text-muted-foreground",
|
|
573
533
|
children: "Original Job ID"
|
|
574
534
|
});
|
|
575
|
-
$[
|
|
576
|
-
} else t5 = $[
|
|
535
|
+
$[6] = t5;
|
|
536
|
+
} else t5 = $[6];
|
|
577
537
|
const t6 = job.originalJobId || "-";
|
|
578
538
|
let t7;
|
|
579
|
-
if ($[
|
|
539
|
+
if ($[7] !== t6) {
|
|
580
540
|
t7 = /* @__PURE__ */ jsxs("div", { children: [t5, /* @__PURE__ */ jsx("div", {
|
|
581
541
|
className: "font-mono text-xs",
|
|
582
542
|
children: t6
|
|
583
543
|
})] });
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
} else t7 = $[
|
|
544
|
+
$[7] = t6;
|
|
545
|
+
$[8] = t7;
|
|
546
|
+
} else t7 = $[8];
|
|
587
547
|
let t8;
|
|
588
|
-
if ($[
|
|
548
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
589
549
|
t8 = /* @__PURE__ */ jsx("span", {
|
|
590
550
|
className: "text-muted-foreground",
|
|
591
551
|
children: "Attempts Made"
|
|
592
552
|
});
|
|
593
|
-
$[
|
|
594
|
-
} else t8 = $[
|
|
553
|
+
$[9] = t8;
|
|
554
|
+
} else t8 = $[9];
|
|
595
555
|
let t9;
|
|
596
|
-
if ($[
|
|
556
|
+
if ($[10] !== job.attemptsMade) {
|
|
597
557
|
t9 = /* @__PURE__ */ jsxs("div", { children: [t8, /* @__PURE__ */ jsx("div", {
|
|
598
558
|
className: "font-semibold",
|
|
599
559
|
children: job.attemptsMade
|
|
600
560
|
})] });
|
|
601
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
} else t9 = $[
|
|
561
|
+
$[10] = job.attemptsMade;
|
|
562
|
+
$[11] = t9;
|
|
563
|
+
} else t9 = $[11];
|
|
604
564
|
let t10;
|
|
605
|
-
if ($[
|
|
565
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
606
566
|
t10 = /* @__PURE__ */ jsx("span", {
|
|
607
567
|
className: "text-muted-foreground",
|
|
608
568
|
children: "Failed At"
|
|
609
569
|
});
|
|
610
|
-
$[
|
|
611
|
-
} else t10 = $[
|
|
570
|
+
$[12] = t10;
|
|
571
|
+
} else t10 = $[12];
|
|
612
572
|
let t11;
|
|
613
|
-
if ($[
|
|
573
|
+
if ($[13] !== job.failureTimestamp) {
|
|
614
574
|
t11 = formatDistanceToNow(job.failureTimestamp, { addSuffix: true });
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
} else t11 = $[
|
|
575
|
+
$[13] = job.failureTimestamp;
|
|
576
|
+
$[14] = t11;
|
|
577
|
+
} else t11 = $[14];
|
|
618
578
|
let t12;
|
|
619
|
-
if ($[
|
|
579
|
+
if ($[15] !== t11) {
|
|
620
580
|
t12 = /* @__PURE__ */ jsxs("div", { children: [t10, /* @__PURE__ */ jsx("div", { children: t11 })] });
|
|
621
|
-
$[
|
|
622
|
-
$[
|
|
623
|
-
} else t12 = $[
|
|
581
|
+
$[15] = t11;
|
|
582
|
+
$[16] = t12;
|
|
583
|
+
} else t12 = $[16];
|
|
624
584
|
let t13;
|
|
625
|
-
if ($[
|
|
585
|
+
if ($[17] !== t12 || $[18] !== t4 || $[19] !== t7 || $[20] !== t9) {
|
|
626
586
|
t13 = /* @__PURE__ */ jsxs("div", {
|
|
627
587
|
className: "grid grid-cols-2 gap-4 text-sm",
|
|
628
588
|
children: [
|
|
@@ -632,31 +592,31 @@ const DLQJobDetailContent = memo((t0) => {
|
|
|
632
592
|
t12
|
|
633
593
|
]
|
|
634
594
|
});
|
|
635
|
-
$[
|
|
636
|
-
$[
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
640
|
-
} else t13 = $[
|
|
595
|
+
$[17] = t12;
|
|
596
|
+
$[18] = t4;
|
|
597
|
+
$[19] = t7;
|
|
598
|
+
$[20] = t9;
|
|
599
|
+
$[21] = t13;
|
|
600
|
+
} else t13 = $[21];
|
|
641
601
|
let t14;
|
|
642
|
-
if ($[
|
|
602
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
643
603
|
t14 = /* @__PURE__ */ jsx("div", {
|
|
644
604
|
className: "text-sm font-semibold text-destructive mb-2",
|
|
645
605
|
children: "Failure Reason"
|
|
646
606
|
});
|
|
647
|
-
$[
|
|
648
|
-
} else t14 = $[
|
|
607
|
+
$[22] = t14;
|
|
608
|
+
} else t14 = $[22];
|
|
649
609
|
let t15;
|
|
650
|
-
if ($[
|
|
610
|
+
if ($[23] !== job.failureReason) {
|
|
651
611
|
t15 = /* @__PURE__ */ jsxs("div", { children: [t14, /* @__PURE__ */ jsx("div", {
|
|
652
612
|
className: "font-mono text-sm bg-destructive/10 p-3 rounded text-destructive",
|
|
653
613
|
children: job.failureReason
|
|
654
614
|
})] });
|
|
655
|
-
$[
|
|
656
|
-
$[
|
|
657
|
-
} else t15 = $[
|
|
615
|
+
$[23] = job.failureReason;
|
|
616
|
+
$[24] = t15;
|
|
617
|
+
} else t15 = $[24];
|
|
658
618
|
let t16;
|
|
659
|
-
if ($[
|
|
619
|
+
if ($[25] !== t13 || $[26] !== t15 || $[27] !== t2) {
|
|
660
620
|
t16 = /* @__PURE__ */ jsxs("div", {
|
|
661
621
|
className: "space-y-4",
|
|
662
622
|
children: [
|
|
@@ -665,24 +625,20 @@ const DLQJobDetailContent = memo((t0) => {
|
|
|
665
625
|
t15
|
|
666
626
|
]
|
|
667
627
|
});
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
670
|
-
$[
|
|
671
|
-
$[
|
|
672
|
-
} else t16 = $[
|
|
628
|
+
$[25] = t13;
|
|
629
|
+
$[26] = t15;
|
|
630
|
+
$[27] = t2;
|
|
631
|
+
$[28] = t16;
|
|
632
|
+
} else t16 = $[28];
|
|
673
633
|
return t16;
|
|
674
634
|
});
|
|
675
635
|
DLQJobDetailContent.displayName = "DLQJobDetailContent";
|
|
676
636
|
const DLQJobDataTab = memo((t0) => {
|
|
677
|
-
const $ = c(
|
|
678
|
-
if ($[0] !== "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a") {
|
|
679
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
680
|
-
$[0] = "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a";
|
|
681
|
-
}
|
|
637
|
+
const $ = c(2);
|
|
682
638
|
const { data } = t0;
|
|
683
639
|
const t1 = data;
|
|
684
640
|
let t2;
|
|
685
|
-
if ($[
|
|
641
|
+
if ($[0] !== t1) {
|
|
686
642
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
687
643
|
className: "bg-muted/30 p-4 rounded overflow-auto max-h-[400px]",
|
|
688
644
|
children: /* @__PURE__ */ jsx(JsonView, {
|
|
@@ -691,33 +647,29 @@ const DLQJobDataTab = memo((t0) => {
|
|
|
691
647
|
collapsed: 2
|
|
692
648
|
})
|
|
693
649
|
});
|
|
694
|
-
$[
|
|
695
|
-
$[
|
|
696
|
-
} else t2 = $[
|
|
650
|
+
$[0] = t1;
|
|
651
|
+
$[1] = t2;
|
|
652
|
+
} else t2 = $[1];
|
|
697
653
|
return t2;
|
|
698
654
|
});
|
|
699
655
|
DLQJobDataTab.displayName = "DLQJobDataTab";
|
|
700
656
|
const DLQPanel = memo(() => {
|
|
701
|
-
const $ = c(
|
|
702
|
-
if ($[0] !== "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a") {
|
|
703
|
-
for (let $i = 0; $i < 66; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
704
|
-
$[0] = "9c642c700580e607dc6114475cae1bdbb21b1057857ec3c5d1e46ac6c107027a";
|
|
705
|
-
}
|
|
657
|
+
const $ = c(65);
|
|
706
658
|
const selectedQueue = useBullMQStore(_temp$5);
|
|
707
659
|
const { data: t0, isLoading, refetch } = useDLQJobsQuery(selectedQueue?.isDLQ ? selectedQueue.name : void 0);
|
|
708
660
|
let t1;
|
|
709
|
-
if ($[
|
|
661
|
+
if ($[0] !== t0) {
|
|
710
662
|
t1 = t0 === void 0 ? [] : t0;
|
|
711
|
-
$[
|
|
712
|
-
$[
|
|
713
|
-
} else t1 = $[
|
|
663
|
+
$[0] = t0;
|
|
664
|
+
$[1] = t1;
|
|
665
|
+
} else t1 = $[1];
|
|
714
666
|
const dlqJobs = t1;
|
|
715
667
|
const retryFromDLQMutation = useRetryFromDLQ();
|
|
716
668
|
const retryAllFromDLQMutation = useRetryAllFromDLQ();
|
|
717
669
|
const clearDLQMutation = useClearDLQ();
|
|
718
670
|
const [selectedDlqJob, setSelectedDlqJob] = useState(null);
|
|
719
671
|
let t2;
|
|
720
|
-
if ($[
|
|
672
|
+
if ($[2] !== retryFromDLQMutation || $[3] !== selectedQueue) {
|
|
721
673
|
t2 = (jobId) => {
|
|
722
674
|
if (!selectedQueue) return;
|
|
723
675
|
retryFromDLQMutation.mutate({
|
|
@@ -725,67 +677,67 @@ const DLQPanel = memo(() => {
|
|
|
725
677
|
jobId
|
|
726
678
|
});
|
|
727
679
|
};
|
|
728
|
-
$[
|
|
729
|
-
$[
|
|
730
|
-
$[
|
|
731
|
-
} else t2 = $[
|
|
680
|
+
$[2] = retryFromDLQMutation;
|
|
681
|
+
$[3] = selectedQueue;
|
|
682
|
+
$[4] = t2;
|
|
683
|
+
} else t2 = $[4];
|
|
732
684
|
const handleRetry = t2;
|
|
733
685
|
let t3;
|
|
734
|
-
if ($[
|
|
686
|
+
if ($[5] !== retryAllFromDLQMutation || $[6] !== selectedQueue) {
|
|
735
687
|
t3 = () => {
|
|
736
688
|
if (!selectedQueue) return;
|
|
737
689
|
retryAllFromDLQMutation.mutate({ queueName: selectedQueue.name });
|
|
738
690
|
};
|
|
739
|
-
$[
|
|
740
|
-
$[
|
|
741
|
-
$[
|
|
742
|
-
} else t3 = $[
|
|
691
|
+
$[5] = retryAllFromDLQMutation;
|
|
692
|
+
$[6] = selectedQueue;
|
|
693
|
+
$[7] = t3;
|
|
694
|
+
} else t3 = $[7];
|
|
743
695
|
const handleRetryAll = t3;
|
|
744
696
|
let t4;
|
|
745
|
-
if ($[
|
|
697
|
+
if ($[8] !== clearDLQMutation || $[9] !== selectedQueue) {
|
|
746
698
|
t4 = () => {
|
|
747
699
|
if (!selectedQueue) return;
|
|
748
700
|
clearDLQMutation.mutate({ queueName: selectedQueue.name });
|
|
749
701
|
};
|
|
750
|
-
$[
|
|
751
|
-
$[
|
|
752
|
-
$[
|
|
753
|
-
} else t4 = $[
|
|
702
|
+
$[8] = clearDLQMutation;
|
|
703
|
+
$[9] = selectedQueue;
|
|
704
|
+
$[10] = t4;
|
|
705
|
+
} else t4 = $[10];
|
|
754
706
|
const handleClear = t4;
|
|
755
707
|
let t5;
|
|
756
|
-
if ($[
|
|
708
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
757
709
|
t5 = () => {
|
|
758
710
|
setSelectedDlqJob(null);
|
|
759
711
|
};
|
|
760
|
-
$[
|
|
761
|
-
} else t5 = $[
|
|
712
|
+
$[11] = t5;
|
|
713
|
+
} else t5 = $[11];
|
|
762
714
|
const handleCloseSidePanel = t5;
|
|
763
715
|
let t6;
|
|
764
|
-
if ($[
|
|
716
|
+
if ($[12] !== handleRetry || $[13] !== selectedDlqJob) {
|
|
765
717
|
t6 = () => {
|
|
766
718
|
if (selectedDlqJob) {
|
|
767
719
|
handleRetry(selectedDlqJob.id);
|
|
768
720
|
setSelectedDlqJob(null);
|
|
769
721
|
}
|
|
770
722
|
};
|
|
771
|
-
$[
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
774
|
-
} else t6 = $[
|
|
723
|
+
$[12] = handleRetry;
|
|
724
|
+
$[13] = selectedDlqJob;
|
|
725
|
+
$[14] = t6;
|
|
726
|
+
} else t6 = $[14];
|
|
775
727
|
const handleRetryAndClose = t6;
|
|
776
728
|
if (!selectedQueue?.isDLQ) return null;
|
|
777
729
|
let t7;
|
|
778
|
-
if ($[
|
|
730
|
+
if ($[15] !== selectedQueue.displayName) {
|
|
779
731
|
t7 = /* @__PURE__ */ jsx("h2", {
|
|
780
732
|
className: "font-semibold text-lg",
|
|
781
733
|
children: selectedQueue.displayName
|
|
782
734
|
});
|
|
783
|
-
$[
|
|
784
|
-
$[
|
|
785
|
-
} else t7 = $[
|
|
735
|
+
$[15] = selectedQueue.displayName;
|
|
736
|
+
$[16] = t7;
|
|
737
|
+
} else t7 = $[16];
|
|
786
738
|
const t8 = dlqJobs.length !== 1 ? "s" : "";
|
|
787
739
|
let t9;
|
|
788
|
-
if ($[
|
|
740
|
+
if ($[17] !== dlqJobs.length || $[18] !== t8) {
|
|
789
741
|
t9 = /* @__PURE__ */ jsxs("p", {
|
|
790
742
|
className: "text-sm text-muted-foreground",
|
|
791
743
|
children: [
|
|
@@ -795,32 +747,32 @@ const DLQPanel = memo(() => {
|
|
|
795
747
|
" in dead letter queue"
|
|
796
748
|
]
|
|
797
749
|
});
|
|
798
|
-
$[
|
|
799
|
-
$[
|
|
800
|
-
$[
|
|
801
|
-
} else t9 = $[
|
|
750
|
+
$[17] = dlqJobs.length;
|
|
751
|
+
$[18] = t8;
|
|
752
|
+
$[19] = t9;
|
|
753
|
+
} else t9 = $[19];
|
|
802
754
|
let t10;
|
|
803
|
-
if ($[
|
|
755
|
+
if ($[20] !== t7 || $[21] !== t9) {
|
|
804
756
|
t10 = /* @__PURE__ */ jsxs("div", { children: [t7, t9] });
|
|
805
|
-
$[
|
|
806
|
-
$[
|
|
807
|
-
$[
|
|
808
|
-
} else t10 = $[
|
|
757
|
+
$[20] = t7;
|
|
758
|
+
$[21] = t9;
|
|
759
|
+
$[22] = t10;
|
|
760
|
+
} else t10 = $[22];
|
|
809
761
|
let t11;
|
|
810
|
-
if ($[
|
|
762
|
+
if ($[23] !== refetch) {
|
|
811
763
|
t11 = () => refetch();
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
} else t11 = $[
|
|
764
|
+
$[23] = refetch;
|
|
765
|
+
$[24] = t11;
|
|
766
|
+
} else t11 = $[24];
|
|
815
767
|
const t12 = `h-4 w-4 ${isLoading ? "animate-spin" : ""}`;
|
|
816
768
|
let t13;
|
|
817
|
-
if ($[
|
|
769
|
+
if ($[25] !== t12) {
|
|
818
770
|
t13 = /* @__PURE__ */ jsx(RefreshCw, { className: t12 });
|
|
819
|
-
$[
|
|
820
|
-
$[
|
|
821
|
-
} else t13 = $[
|
|
771
|
+
$[25] = t12;
|
|
772
|
+
$[26] = t13;
|
|
773
|
+
} else t13 = $[26];
|
|
822
774
|
let t14;
|
|
823
|
-
if ($[
|
|
775
|
+
if ($[27] !== isLoading || $[28] !== t11 || $[29] !== t13) {
|
|
824
776
|
t14 = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
825
777
|
asChild: true,
|
|
826
778
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -831,30 +783,30 @@ const DLQPanel = memo(() => {
|
|
|
831
783
|
children: t13
|
|
832
784
|
})
|
|
833
785
|
});
|
|
834
|
-
$[
|
|
835
|
-
$[
|
|
836
|
-
$[
|
|
837
|
-
$[
|
|
838
|
-
} else t14 = $[
|
|
786
|
+
$[27] = isLoading;
|
|
787
|
+
$[28] = t11;
|
|
788
|
+
$[29] = t13;
|
|
789
|
+
$[30] = t14;
|
|
790
|
+
} else t14 = $[30];
|
|
839
791
|
let t15;
|
|
840
|
-
if ($[
|
|
792
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
841
793
|
t15 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Refresh DLQ jobs list" }) });
|
|
842
|
-
$[
|
|
843
|
-
} else t15 = $[
|
|
794
|
+
$[31] = t15;
|
|
795
|
+
} else t15 = $[31];
|
|
844
796
|
let t16;
|
|
845
|
-
if ($[
|
|
797
|
+
if ($[32] !== t14) {
|
|
846
798
|
t16 = /* @__PURE__ */ jsxs(Tooltip, { children: [t14, t15] });
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
849
|
-
} else t16 = $[
|
|
799
|
+
$[32] = t14;
|
|
800
|
+
$[33] = t16;
|
|
801
|
+
} else t16 = $[33];
|
|
850
802
|
const t17 = dlqJobs.length === 0;
|
|
851
803
|
let t18;
|
|
852
|
-
if ($[
|
|
804
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
853
805
|
t18 = /* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" });
|
|
854
|
-
$[
|
|
855
|
-
} else t18 = $[
|
|
806
|
+
$[34] = t18;
|
|
807
|
+
} else t18 = $[34];
|
|
856
808
|
let t19;
|
|
857
|
-
if ($[
|
|
809
|
+
if ($[35] !== handleRetryAll || $[36] !== t17) {
|
|
858
810
|
t19 = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
859
811
|
asChild: true,
|
|
860
812
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
@@ -865,29 +817,29 @@ const DLQPanel = memo(() => {
|
|
|
865
817
|
children: [t18, "Retry All"]
|
|
866
818
|
})
|
|
867
819
|
});
|
|
868
|
-
$[
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
} else t19 = $[
|
|
820
|
+
$[35] = handleRetryAll;
|
|
821
|
+
$[36] = t17;
|
|
822
|
+
$[37] = t19;
|
|
823
|
+
} else t19 = $[37];
|
|
872
824
|
let t20;
|
|
873
|
-
if ($[
|
|
825
|
+
if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
|
|
874
826
|
t20 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Re-queue all failed jobs to the original queue" }) });
|
|
875
|
-
$[
|
|
876
|
-
} else t20 = $[
|
|
827
|
+
$[38] = t20;
|
|
828
|
+
} else t20 = $[38];
|
|
877
829
|
let t21;
|
|
878
|
-
if ($[
|
|
830
|
+
if ($[39] !== t19) {
|
|
879
831
|
t21 = /* @__PURE__ */ jsxs(Tooltip, { children: [t19, t20] });
|
|
880
|
-
$[
|
|
881
|
-
$[
|
|
882
|
-
} else t21 = $[
|
|
832
|
+
$[39] = t19;
|
|
833
|
+
$[40] = t21;
|
|
834
|
+
} else t21 = $[40];
|
|
883
835
|
const t22 = dlqJobs.length === 0;
|
|
884
836
|
let t23;
|
|
885
|
-
if ($[
|
|
837
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
886
838
|
t23 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
887
|
-
$[
|
|
888
|
-
} else t23 = $[
|
|
839
|
+
$[41] = t23;
|
|
840
|
+
} else t23 = $[41];
|
|
889
841
|
let t24;
|
|
890
|
-
if ($[
|
|
842
|
+
if ($[42] !== handleClear || $[43] !== t22) {
|
|
891
843
|
t24 = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
892
844
|
asChild: true,
|
|
893
845
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
@@ -899,23 +851,23 @@ const DLQPanel = memo(() => {
|
|
|
899
851
|
children: [t23, "Clear All"]
|
|
900
852
|
})
|
|
901
853
|
});
|
|
902
|
-
$[
|
|
903
|
-
$[
|
|
904
|
-
$[
|
|
905
|
-
} else t24 = $[
|
|
854
|
+
$[42] = handleClear;
|
|
855
|
+
$[43] = t22;
|
|
856
|
+
$[44] = t24;
|
|
857
|
+
} else t24 = $[44];
|
|
906
858
|
let t25;
|
|
907
|
-
if ($[
|
|
859
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
908
860
|
t25 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Permanently delete all jobs from DLQ" }) });
|
|
909
|
-
$[
|
|
910
|
-
} else t25 = $[
|
|
861
|
+
$[45] = t25;
|
|
862
|
+
} else t25 = $[45];
|
|
911
863
|
let t26;
|
|
912
|
-
if ($[
|
|
864
|
+
if ($[46] !== t24) {
|
|
913
865
|
t26 = /* @__PURE__ */ jsxs(Tooltip, { children: [t24, t25] });
|
|
914
|
-
$[
|
|
915
|
-
$[
|
|
916
|
-
} else t26 = $[
|
|
866
|
+
$[46] = t24;
|
|
867
|
+
$[47] = t26;
|
|
868
|
+
} else t26 = $[47];
|
|
917
869
|
let t27;
|
|
918
|
-
if ($[
|
|
870
|
+
if ($[48] !== t16 || $[49] !== t21 || $[50] !== t26) {
|
|
919
871
|
t27 = /* @__PURE__ */ jsxs("div", {
|
|
920
872
|
className: "flex items-center gap-2",
|
|
921
873
|
children: [
|
|
@@ -924,23 +876,23 @@ const DLQPanel = memo(() => {
|
|
|
924
876
|
t26
|
|
925
877
|
]
|
|
926
878
|
});
|
|
927
|
-
$[
|
|
928
|
-
$[
|
|
929
|
-
$[
|
|
930
|
-
$[
|
|
931
|
-
} else t27 = $[
|
|
879
|
+
$[48] = t16;
|
|
880
|
+
$[49] = t21;
|
|
881
|
+
$[50] = t26;
|
|
882
|
+
$[51] = t27;
|
|
883
|
+
} else t27 = $[51];
|
|
932
884
|
let t28;
|
|
933
|
-
if ($[
|
|
885
|
+
if ($[52] !== t10 || $[53] !== t27) {
|
|
934
886
|
t28 = /* @__PURE__ */ jsxs("div", {
|
|
935
887
|
className: "flex items-center justify-between p-3 border-b border-border",
|
|
936
888
|
children: [t10, t27]
|
|
937
889
|
});
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
940
|
-
$[
|
|
941
|
-
} else t28 = $[
|
|
890
|
+
$[52] = t10;
|
|
891
|
+
$[53] = t27;
|
|
892
|
+
$[54] = t28;
|
|
893
|
+
} else t28 = $[54];
|
|
942
894
|
let t29;
|
|
943
|
-
if ($[
|
|
895
|
+
if ($[55] !== dlqJobs || $[56] !== handleRetry) {
|
|
944
896
|
t29 = dlqJobs.length === 0 ? /* @__PURE__ */ jsx("div", {
|
|
945
897
|
className: "flex items-center justify-center flex-1 text-muted-foreground",
|
|
946
898
|
children: "No jobs in dead letter queue"
|
|
@@ -1007,12 +959,12 @@ const DLQPanel = memo(() => {
|
|
|
1007
959
|
]
|
|
1008
960
|
}, job.id)) })] })
|
|
1009
961
|
});
|
|
1010
|
-
$[
|
|
1011
|
-
$[
|
|
1012
|
-
$[
|
|
1013
|
-
} else t29 = $[
|
|
962
|
+
$[55] = dlqJobs;
|
|
963
|
+
$[56] = handleRetry;
|
|
964
|
+
$[57] = t29;
|
|
965
|
+
} else t29 = $[57];
|
|
1014
966
|
let t30;
|
|
1015
|
-
if ($[
|
|
967
|
+
if ($[58] !== handleRetryAndClose || $[59] !== selectedDlqJob) {
|
|
1016
968
|
t30 = selectedDlqJob && /* @__PURE__ */ jsx(Sidebar, {
|
|
1017
969
|
onClose: handleCloseSidePanel,
|
|
1018
970
|
title: "Dead Letter Job",
|
|
@@ -1033,12 +985,12 @@ const DLQPanel = memo(() => {
|
|
|
1033
985
|
label: "Close"
|
|
1034
986
|
}]
|
|
1035
987
|
});
|
|
1036
|
-
$[
|
|
1037
|
-
$[
|
|
1038
|
-
$[
|
|
1039
|
-
} else t30 = $[
|
|
988
|
+
$[58] = handleRetryAndClose;
|
|
989
|
+
$[59] = selectedDlqJob;
|
|
990
|
+
$[60] = t30;
|
|
991
|
+
} else t30 = $[60];
|
|
1040
992
|
let t31;
|
|
1041
|
-
if ($[
|
|
993
|
+
if ($[61] !== t28 || $[62] !== t29 || $[63] !== t30) {
|
|
1042
994
|
t31 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", {
|
|
1043
995
|
className: "flex flex-col h-full",
|
|
1044
996
|
children: [
|
|
@@ -1047,11 +999,11 @@ const DLQPanel = memo(() => {
|
|
|
1047
999
|
t30
|
|
1048
1000
|
]
|
|
1049
1001
|
}) });
|
|
1050
|
-
$[
|
|
1051
|
-
$[
|
|
1052
|
-
$[
|
|
1053
|
-
$[
|
|
1054
|
-
} else t31 = $[
|
|
1002
|
+
$[61] = t28;
|
|
1003
|
+
$[62] = t29;
|
|
1004
|
+
$[63] = t30;
|
|
1005
|
+
$[64] = t31;
|
|
1006
|
+
} else t31 = $[64];
|
|
1055
1007
|
return t31;
|
|
1056
1008
|
});
|
|
1057
1009
|
DLQPanel.displayName = "DLQPanel";
|
|
@@ -1065,15 +1017,11 @@ function _temp2$5(e) {
|
|
|
1065
1017
|
//#endregion
|
|
1066
1018
|
//#region src/components/job-detail.tsx
|
|
1067
1019
|
const JobDataTab = memo((t0) => {
|
|
1068
|
-
const $ = c(
|
|
1069
|
-
if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
|
|
1070
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1071
|
-
$[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
|
|
1072
|
-
}
|
|
1020
|
+
const $ = c(2);
|
|
1073
1021
|
const { data } = t0;
|
|
1074
1022
|
const t1 = data;
|
|
1075
1023
|
let t2;
|
|
1076
|
-
if ($[
|
|
1024
|
+
if ($[0] !== t1) {
|
|
1077
1025
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
1078
1026
|
className: "bg-muted/30 p-4 rounded",
|
|
1079
1027
|
children: /* @__PURE__ */ jsx(JsonView, {
|
|
@@ -1082,21 +1030,17 @@ const JobDataTab = memo((t0) => {
|
|
|
1082
1030
|
collapsed: 2
|
|
1083
1031
|
})
|
|
1084
1032
|
});
|
|
1085
|
-
$[
|
|
1086
|
-
$[
|
|
1087
|
-
} else t2 = $[
|
|
1033
|
+
$[0] = t1;
|
|
1034
|
+
$[1] = t2;
|
|
1035
|
+
} else t2 = $[1];
|
|
1088
1036
|
return t2;
|
|
1089
1037
|
});
|
|
1090
1038
|
JobDataTab.displayName = "JobDataTab";
|
|
1091
1039
|
const JobOptionsTab = memo((t0) => {
|
|
1092
|
-
const $ = c(
|
|
1093
|
-
if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
|
|
1094
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1095
|
-
$[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
|
|
1096
|
-
}
|
|
1040
|
+
const $ = c(2);
|
|
1097
1041
|
const { opts } = t0;
|
|
1098
1042
|
let t1;
|
|
1099
|
-
if ($[
|
|
1043
|
+
if ($[0] !== opts) {
|
|
1100
1044
|
t1 = /* @__PURE__ */ jsx("div", {
|
|
1101
1045
|
className: "bg-muted/30 p-4 rounded",
|
|
1102
1046
|
children: /* @__PURE__ */ jsx(JsonView, {
|
|
@@ -1105,22 +1049,18 @@ const JobOptionsTab = memo((t0) => {
|
|
|
1105
1049
|
collapsed: 2
|
|
1106
1050
|
})
|
|
1107
1051
|
});
|
|
1108
|
-
$[
|
|
1109
|
-
$[
|
|
1110
|
-
} else t1 = $[
|
|
1052
|
+
$[0] = opts;
|
|
1053
|
+
$[1] = t1;
|
|
1054
|
+
} else t1 = $[1];
|
|
1111
1055
|
return t1;
|
|
1112
1056
|
});
|
|
1113
1057
|
JobOptionsTab.displayName = "JobOptionsTab";
|
|
1114
1058
|
const JobResultTab = memo((t0) => {
|
|
1115
|
-
const $ = c(
|
|
1116
|
-
if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
|
|
1117
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1118
|
-
$[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
|
|
1119
|
-
}
|
|
1059
|
+
const $ = c(2);
|
|
1120
1060
|
const { returnvalue } = t0;
|
|
1121
1061
|
const t1 = returnvalue;
|
|
1122
1062
|
let t2;
|
|
1123
|
-
if ($[
|
|
1063
|
+
if ($[0] !== t1) {
|
|
1124
1064
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
1125
1065
|
className: "bg-muted/30 p-4 rounded",
|
|
1126
1066
|
children: /* @__PURE__ */ jsx(JsonView, {
|
|
@@ -1129,38 +1069,34 @@ const JobResultTab = memo((t0) => {
|
|
|
1129
1069
|
collapsed: 2
|
|
1130
1070
|
})
|
|
1131
1071
|
});
|
|
1132
|
-
$[
|
|
1133
|
-
$[
|
|
1134
|
-
} else t2 = $[
|
|
1072
|
+
$[0] = t1;
|
|
1073
|
+
$[1] = t2;
|
|
1074
|
+
} else t2 = $[1];
|
|
1135
1075
|
return t2;
|
|
1136
1076
|
});
|
|
1137
1077
|
JobResultTab.displayName = "JobResultTab";
|
|
1138
1078
|
const JobErrorTab = memo((t0) => {
|
|
1139
|
-
const $ = c(
|
|
1140
|
-
if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
|
|
1141
|
-
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1142
|
-
$[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
|
|
1143
|
-
}
|
|
1079
|
+
const $ = c(8);
|
|
1144
1080
|
const { failedReason, stacktrace } = t0;
|
|
1145
1081
|
let t1;
|
|
1146
|
-
if ($[
|
|
1082
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1147
1083
|
t1 = /* @__PURE__ */ jsx("div", {
|
|
1148
1084
|
className: "text-sm font-semibold text-destructive mb-1",
|
|
1149
1085
|
children: "Error Message"
|
|
1150
1086
|
});
|
|
1151
|
-
$[
|
|
1152
|
-
} else t1 = $[
|
|
1087
|
+
$[0] = t1;
|
|
1088
|
+
} else t1 = $[0];
|
|
1153
1089
|
let t2;
|
|
1154
|
-
if ($[
|
|
1090
|
+
if ($[1] !== failedReason) {
|
|
1155
1091
|
t2 = /* @__PURE__ */ jsxs("div", { children: [t1, /* @__PURE__ */ jsx("div", {
|
|
1156
1092
|
className: "font-mono text-sm bg-destructive/10 p-3 rounded text-destructive",
|
|
1157
1093
|
children: failedReason
|
|
1158
1094
|
})] });
|
|
1159
|
-
$[
|
|
1160
|
-
$[
|
|
1161
|
-
} else t2 = $[
|
|
1095
|
+
$[1] = failedReason;
|
|
1096
|
+
$[2] = t2;
|
|
1097
|
+
} else t2 = $[2];
|
|
1162
1098
|
let t3;
|
|
1163
|
-
if ($[
|
|
1099
|
+
if ($[3] !== stacktrace) {
|
|
1164
1100
|
t3 = stacktrace && stacktrace.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
1165
1101
|
className: "text-sm font-semibold text-muted-foreground mb-1",
|
|
1166
1102
|
children: "Stack Trace"
|
|
@@ -1168,28 +1104,24 @@ const JobErrorTab = memo((t0) => {
|
|
|
1168
1104
|
className: "font-mono text-xs bg-muted p-3 rounded overflow-auto max-h-[300px]",
|
|
1169
1105
|
children: stacktrace.join("\n")
|
|
1170
1106
|
})] });
|
|
1171
|
-
$[
|
|
1172
|
-
$[
|
|
1173
|
-
} else t3 = $[
|
|
1107
|
+
$[3] = stacktrace;
|
|
1108
|
+
$[4] = t3;
|
|
1109
|
+
} else t3 = $[4];
|
|
1174
1110
|
let t4;
|
|
1175
|
-
if ($[
|
|
1111
|
+
if ($[5] !== t2 || $[6] !== t3) {
|
|
1176
1112
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
1177
1113
|
className: "space-y-4",
|
|
1178
1114
|
children: [t2, t3]
|
|
1179
1115
|
});
|
|
1180
|
-
$[
|
|
1181
|
-
$[
|
|
1182
|
-
$[
|
|
1183
|
-
} else t4 = $[
|
|
1116
|
+
$[5] = t2;
|
|
1117
|
+
$[6] = t3;
|
|
1118
|
+
$[7] = t4;
|
|
1119
|
+
} else t4 = $[7];
|
|
1184
1120
|
return t4;
|
|
1185
1121
|
});
|
|
1186
1122
|
JobErrorTab.displayName = "JobErrorTab";
|
|
1187
1123
|
const JobDetail = memo(() => {
|
|
1188
|
-
const $ = c(
|
|
1189
|
-
if ($[0] !== "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd") {
|
|
1190
|
-
for (let $i = 0; $i < 92; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1191
|
-
$[0] = "3b06a00e91af27c8dc4dbe23232bee1ad67432d0e4c5ed3ab9b136e6d2a7a3cd";
|
|
1192
|
-
}
|
|
1124
|
+
const $ = c(91);
|
|
1193
1125
|
const selectedJob = useBullMQStore(_temp$4);
|
|
1194
1126
|
const selectedQueue = useBullMQStore(_temp2$4);
|
|
1195
1127
|
const jobDetailOpen = useBullMQStore(_temp3$3);
|
|
@@ -1199,18 +1131,18 @@ const JobDetail = memo(() => {
|
|
|
1199
1131
|
const removeJobMutation = useRemoveJob();
|
|
1200
1132
|
const promoteJobMutation = usePromoteJob();
|
|
1201
1133
|
let t0;
|
|
1202
|
-
if ($[
|
|
1134
|
+
if ($[0] !== setJobDetailOpen || $[1] !== setSelectedJob) {
|
|
1203
1135
|
t0 = () => {
|
|
1204
1136
|
setJobDetailOpen(false);
|
|
1205
1137
|
setSelectedJob(null);
|
|
1206
1138
|
};
|
|
1207
|
-
$[
|
|
1208
|
-
$[
|
|
1209
|
-
$[
|
|
1210
|
-
} else t0 = $[
|
|
1139
|
+
$[0] = setJobDetailOpen;
|
|
1140
|
+
$[1] = setSelectedJob;
|
|
1141
|
+
$[2] = t0;
|
|
1142
|
+
} else t0 = $[2];
|
|
1211
1143
|
const handleClose = t0;
|
|
1212
1144
|
let t1;
|
|
1213
|
-
if ($[
|
|
1145
|
+
if ($[3] !== handleClose || $[4] !== retryJobMutation || $[5] !== selectedJob || $[6] !== selectedQueue) {
|
|
1214
1146
|
t1 = () => {
|
|
1215
1147
|
if (!selectedQueue || !selectedJob) return;
|
|
1216
1148
|
retryJobMutation.mutate({
|
|
@@ -1219,15 +1151,15 @@ const JobDetail = memo(() => {
|
|
|
1219
1151
|
});
|
|
1220
1152
|
handleClose();
|
|
1221
1153
|
};
|
|
1222
|
-
$[
|
|
1223
|
-
$[
|
|
1224
|
-
$[
|
|
1225
|
-
$[
|
|
1226
|
-
$[
|
|
1227
|
-
} else t1 = $[
|
|
1154
|
+
$[3] = handleClose;
|
|
1155
|
+
$[4] = retryJobMutation;
|
|
1156
|
+
$[5] = selectedJob;
|
|
1157
|
+
$[6] = selectedQueue;
|
|
1158
|
+
$[7] = t1;
|
|
1159
|
+
} else t1 = $[7];
|
|
1228
1160
|
const handleRetry = t1;
|
|
1229
1161
|
let t2;
|
|
1230
|
-
if ($[
|
|
1162
|
+
if ($[8] !== handleClose || $[9] !== removeJobMutation || $[10] !== selectedJob || $[11] !== selectedQueue) {
|
|
1231
1163
|
t2 = () => {
|
|
1232
1164
|
if (!selectedQueue || !selectedJob) return;
|
|
1233
1165
|
removeJobMutation.mutate({
|
|
@@ -1236,15 +1168,15 @@ const JobDetail = memo(() => {
|
|
|
1236
1168
|
});
|
|
1237
1169
|
handleClose();
|
|
1238
1170
|
};
|
|
1239
|
-
$[
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
$[
|
|
1244
|
-
} else t2 = $[
|
|
1171
|
+
$[8] = handleClose;
|
|
1172
|
+
$[9] = removeJobMutation;
|
|
1173
|
+
$[10] = selectedJob;
|
|
1174
|
+
$[11] = selectedQueue;
|
|
1175
|
+
$[12] = t2;
|
|
1176
|
+
} else t2 = $[12];
|
|
1245
1177
|
const handleRemove = t2;
|
|
1246
1178
|
let t3;
|
|
1247
|
-
if ($[
|
|
1179
|
+
if ($[13] !== handleClose || $[14] !== promoteJobMutation || $[15] !== selectedJob || $[16] !== selectedQueue) {
|
|
1248
1180
|
t3 = () => {
|
|
1249
1181
|
if (!selectedQueue || !selectedJob) return;
|
|
1250
1182
|
promoteJobMutation.mutate({
|
|
@@ -1253,47 +1185,47 @@ const JobDetail = memo(() => {
|
|
|
1253
1185
|
});
|
|
1254
1186
|
handleClose();
|
|
1255
1187
|
};
|
|
1256
|
-
$[
|
|
1257
|
-
$[
|
|
1258
|
-
$[
|
|
1259
|
-
$[
|
|
1260
|
-
$[
|
|
1261
|
-
} else t3 = $[
|
|
1188
|
+
$[13] = handleClose;
|
|
1189
|
+
$[14] = promoteJobMutation;
|
|
1190
|
+
$[15] = selectedJob;
|
|
1191
|
+
$[16] = selectedQueue;
|
|
1192
|
+
$[17] = t3;
|
|
1193
|
+
} else t3 = $[17];
|
|
1262
1194
|
const handlePromote = t3;
|
|
1263
1195
|
if (!jobDetailOpen || !selectedJob || !selectedQueue) return null;
|
|
1264
1196
|
const hasError = !!selectedJob.failedReason;
|
|
1265
1197
|
const isDelayed = selectedJob.delay && selectedJob.delay > 0;
|
|
1266
1198
|
const hasReturnValue = selectedJob.returnvalue !== void 0 && selectedJob.returnvalue !== null;
|
|
1267
1199
|
let t4;
|
|
1268
|
-
if ($[
|
|
1200
|
+
if ($[18] !== selectedJob.data) {
|
|
1269
1201
|
t4 = {
|
|
1270
1202
|
label: "Data",
|
|
1271
1203
|
content: /* @__PURE__ */ jsx(JobDataTab, { data: selectedJob.data })
|
|
1272
1204
|
};
|
|
1273
|
-
$[
|
|
1274
|
-
$[
|
|
1275
|
-
} else t4 = $[
|
|
1205
|
+
$[18] = selectedJob.data;
|
|
1206
|
+
$[19] = t4;
|
|
1207
|
+
} else t4 = $[19];
|
|
1276
1208
|
let t5;
|
|
1277
|
-
if ($[
|
|
1209
|
+
if ($[20] !== selectedJob.opts) {
|
|
1278
1210
|
t5 = {
|
|
1279
1211
|
label: "Options",
|
|
1280
1212
|
content: /* @__PURE__ */ jsx(JobOptionsTab, { opts: selectedJob.opts })
|
|
1281
1213
|
};
|
|
1282
|
-
$[
|
|
1283
|
-
$[
|
|
1284
|
-
} else t5 = $[
|
|
1214
|
+
$[20] = selectedJob.opts;
|
|
1215
|
+
$[21] = t5;
|
|
1216
|
+
} else t5 = $[21];
|
|
1285
1217
|
let t6;
|
|
1286
|
-
if ($[
|
|
1218
|
+
if ($[22] !== hasReturnValue || $[23] !== selectedJob.returnvalue) {
|
|
1287
1219
|
t6 = hasReturnValue ? [{
|
|
1288
1220
|
label: "Result",
|
|
1289
1221
|
content: /* @__PURE__ */ jsx(JobResultTab, { returnvalue: selectedJob.returnvalue })
|
|
1290
1222
|
}] : [];
|
|
1291
|
-
$[
|
|
1292
|
-
$[
|
|
1293
|
-
$[
|
|
1294
|
-
} else t6 = $[
|
|
1223
|
+
$[22] = hasReturnValue;
|
|
1224
|
+
$[23] = selectedJob.returnvalue;
|
|
1225
|
+
$[24] = t6;
|
|
1226
|
+
} else t6 = $[24];
|
|
1295
1227
|
let t7;
|
|
1296
|
-
if ($[
|
|
1228
|
+
if ($[25] !== hasError || $[26] !== selectedJob.failedReason || $[27] !== selectedJob.stacktrace) {
|
|
1297
1229
|
t7 = hasError ? [{
|
|
1298
1230
|
label: "Error",
|
|
1299
1231
|
content: /* @__PURE__ */ jsx(JobErrorTab, {
|
|
@@ -1301,28 +1233,28 @@ const JobDetail = memo(() => {
|
|
|
1301
1233
|
stacktrace: selectedJob.stacktrace
|
|
1302
1234
|
})
|
|
1303
1235
|
}] : [];
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
$[
|
|
1307
|
-
$[
|
|
1308
|
-
} else t7 = $[
|
|
1236
|
+
$[25] = hasError;
|
|
1237
|
+
$[26] = selectedJob.failedReason;
|
|
1238
|
+
$[27] = selectedJob.stacktrace;
|
|
1239
|
+
$[28] = t7;
|
|
1240
|
+
} else t7 = $[28];
|
|
1309
1241
|
let t8;
|
|
1310
|
-
if ($[
|
|
1242
|
+
if ($[29] !== t4 || $[30] !== t5 || $[31] !== t6 || $[32] !== t7) {
|
|
1311
1243
|
t8 = [
|
|
1312
1244
|
t4,
|
|
1313
1245
|
t5,
|
|
1314
1246
|
...t6,
|
|
1315
1247
|
...t7
|
|
1316
1248
|
];
|
|
1317
|
-
$[
|
|
1318
|
-
$[
|
|
1319
|
-
$[
|
|
1320
|
-
$[
|
|
1321
|
-
$[
|
|
1322
|
-
} else t8 = $[
|
|
1249
|
+
$[29] = t4;
|
|
1250
|
+
$[30] = t5;
|
|
1251
|
+
$[31] = t6;
|
|
1252
|
+
$[32] = t7;
|
|
1253
|
+
$[33] = t8;
|
|
1254
|
+
} else t8 = $[33];
|
|
1323
1255
|
const tabs = t8;
|
|
1324
1256
|
let t9;
|
|
1325
|
-
if ($[
|
|
1257
|
+
if ($[34] !== hasError || $[35] !== isDelayed || $[36] !== selectedJob.finishedOn || $[37] !== selectedJob.processedOn) {
|
|
1326
1258
|
t9 = hasError ? /* @__PURE__ */ jsx("span", {
|
|
1327
1259
|
className: "text-destructive",
|
|
1328
1260
|
children: "Failed"
|
|
@@ -1339,60 +1271,60 @@ const JobDetail = memo(() => {
|
|
|
1339
1271
|
className: "text-blue-500",
|
|
1340
1272
|
children: "Waiting"
|
|
1341
1273
|
});
|
|
1342
|
-
$[
|
|
1343
|
-
$[
|
|
1344
|
-
$[
|
|
1345
|
-
$[
|
|
1346
|
-
$[
|
|
1347
|
-
} else t9 = $[
|
|
1274
|
+
$[34] = hasError;
|
|
1275
|
+
$[35] = isDelayed;
|
|
1276
|
+
$[36] = selectedJob.finishedOn;
|
|
1277
|
+
$[37] = selectedJob.processedOn;
|
|
1278
|
+
$[38] = t9;
|
|
1279
|
+
} else t9 = $[38];
|
|
1348
1280
|
const statusElement = t9;
|
|
1349
1281
|
const t10 = selectedJob.name;
|
|
1350
1282
|
let t11;
|
|
1351
|
-
if ($[
|
|
1283
|
+
if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1352
1284
|
t11 = /* @__PURE__ */ jsx(X, {});
|
|
1353
|
-
$[
|
|
1354
|
-
} else t11 = $[
|
|
1285
|
+
$[39] = t11;
|
|
1286
|
+
} else t11 = $[39];
|
|
1355
1287
|
let t12;
|
|
1356
|
-
if ($[
|
|
1288
|
+
if ($[40] !== handleClose) {
|
|
1357
1289
|
t12 = [{
|
|
1358
1290
|
icon: t11,
|
|
1359
1291
|
onClick: handleClose,
|
|
1360
1292
|
label: "Close"
|
|
1361
1293
|
}];
|
|
1362
|
-
$[
|
|
1363
|
-
$[
|
|
1364
|
-
} else t12 = $[
|
|
1294
|
+
$[40] = handleClose;
|
|
1295
|
+
$[41] = t12;
|
|
1296
|
+
} else t12 = $[41];
|
|
1365
1297
|
let t13;
|
|
1366
|
-
if ($[
|
|
1298
|
+
if ($[42] !== handleRetry || $[43] !== hasError) {
|
|
1367
1299
|
t13 = hasError && /* @__PURE__ */ jsxs(Button, {
|
|
1368
1300
|
variant: "outline",
|
|
1369
1301
|
size: "sm",
|
|
1370
1302
|
onClick: handleRetry,
|
|
1371
1303
|
children: [/* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" }), "Retry"]
|
|
1372
1304
|
});
|
|
1373
|
-
$[
|
|
1374
|
-
$[
|
|
1375
|
-
$[
|
|
1376
|
-
} else t13 = $[
|
|
1305
|
+
$[42] = handleRetry;
|
|
1306
|
+
$[43] = hasError;
|
|
1307
|
+
$[44] = t13;
|
|
1308
|
+
} else t13 = $[44];
|
|
1377
1309
|
let t14;
|
|
1378
|
-
if ($[
|
|
1310
|
+
if ($[45] !== handlePromote || $[46] !== isDelayed) {
|
|
1379
1311
|
t14 = isDelayed && /* @__PURE__ */ jsxs(Button, {
|
|
1380
1312
|
variant: "outline",
|
|
1381
1313
|
size: "sm",
|
|
1382
1314
|
onClick: handlePromote,
|
|
1383
1315
|
children: [/* @__PURE__ */ jsx(ArrowUpRight, { className: "mr-2 h-4 w-4" }), "Promote"]
|
|
1384
1316
|
});
|
|
1385
|
-
$[
|
|
1386
|
-
$[
|
|
1387
|
-
$[
|
|
1388
|
-
} else t14 = $[
|
|
1317
|
+
$[45] = handlePromote;
|
|
1318
|
+
$[46] = isDelayed;
|
|
1319
|
+
$[47] = t14;
|
|
1320
|
+
} else t14 = $[47];
|
|
1389
1321
|
let t15;
|
|
1390
|
-
if ($[
|
|
1322
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1391
1323
|
t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
1392
|
-
$[
|
|
1393
|
-
} else t15 = $[
|
|
1324
|
+
$[48] = t15;
|
|
1325
|
+
} else t15 = $[48];
|
|
1394
1326
|
let t16;
|
|
1395
|
-
if ($[
|
|
1327
|
+
if ($[49] !== handleRemove) {
|
|
1396
1328
|
t16 = /* @__PURE__ */ jsxs(Button, {
|
|
1397
1329
|
variant: "outline",
|
|
1398
1330
|
size: "sm",
|
|
@@ -1400,11 +1332,11 @@ const JobDetail = memo(() => {
|
|
|
1400
1332
|
className: "text-destructive",
|
|
1401
1333
|
children: [t15, "Remove"]
|
|
1402
1334
|
});
|
|
1403
|
-
$[
|
|
1404
|
-
$[
|
|
1405
|
-
} else t16 = $[
|
|
1335
|
+
$[49] = handleRemove;
|
|
1336
|
+
$[50] = t16;
|
|
1337
|
+
} else t16 = $[50];
|
|
1406
1338
|
let t17;
|
|
1407
|
-
if ($[
|
|
1339
|
+
if ($[51] !== t13 || $[52] !== t14 || $[53] !== t16) {
|
|
1408
1340
|
t17 = /* @__PURE__ */ jsxs("div", {
|
|
1409
1341
|
className: "flex gap-2",
|
|
1410
1342
|
children: [
|
|
@@ -1413,120 +1345,120 @@ const JobDetail = memo(() => {
|
|
|
1413
1345
|
t16
|
|
1414
1346
|
]
|
|
1415
1347
|
});
|
|
1416
|
-
$[
|
|
1417
|
-
$[
|
|
1418
|
-
$[
|
|
1419
|
-
$[
|
|
1420
|
-
} else t17 = $[
|
|
1348
|
+
$[51] = t13;
|
|
1349
|
+
$[52] = t14;
|
|
1350
|
+
$[53] = t16;
|
|
1351
|
+
$[54] = t17;
|
|
1352
|
+
} else t17 = $[54];
|
|
1421
1353
|
let t18;
|
|
1422
|
-
if ($[
|
|
1354
|
+
if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1423
1355
|
t18 = /* @__PURE__ */ jsx("span", {
|
|
1424
1356
|
className: "text-muted-foreground",
|
|
1425
1357
|
children: "Job ID"
|
|
1426
1358
|
});
|
|
1427
|
-
$[
|
|
1428
|
-
} else t18 = $[
|
|
1359
|
+
$[55] = t18;
|
|
1360
|
+
} else t18 = $[55];
|
|
1429
1361
|
let t19;
|
|
1430
|
-
if ($[
|
|
1362
|
+
if ($[56] !== selectedJob.id) {
|
|
1431
1363
|
t19 = /* @__PURE__ */ jsxs("div", { children: [t18, /* @__PURE__ */ jsx("div", {
|
|
1432
1364
|
className: "font-mono text-xs",
|
|
1433
1365
|
children: selectedJob.id
|
|
1434
1366
|
})] });
|
|
1435
|
-
$[
|
|
1436
|
-
$[
|
|
1437
|
-
} else t19 = $[
|
|
1367
|
+
$[56] = selectedJob.id;
|
|
1368
|
+
$[57] = t19;
|
|
1369
|
+
} else t19 = $[57];
|
|
1438
1370
|
let t20;
|
|
1439
|
-
if ($[
|
|
1371
|
+
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1440
1372
|
t20 = /* @__PURE__ */ jsx("span", {
|
|
1441
1373
|
className: "text-muted-foreground",
|
|
1442
1374
|
children: "Status"
|
|
1443
1375
|
});
|
|
1444
|
-
$[
|
|
1445
|
-
} else t20 = $[
|
|
1376
|
+
$[58] = t20;
|
|
1377
|
+
} else t20 = $[58];
|
|
1446
1378
|
let t21;
|
|
1447
|
-
if ($[
|
|
1379
|
+
if ($[59] !== statusElement) {
|
|
1448
1380
|
t21 = /* @__PURE__ */ jsxs("div", { children: [t20, /* @__PURE__ */ jsx("div", {
|
|
1449
1381
|
className: "font-semibold",
|
|
1450
1382
|
children: statusElement
|
|
1451
1383
|
})] });
|
|
1452
|
-
$[
|
|
1453
|
-
$[
|
|
1454
|
-
} else t21 = $[
|
|
1384
|
+
$[59] = statusElement;
|
|
1385
|
+
$[60] = t21;
|
|
1386
|
+
} else t21 = $[60];
|
|
1455
1387
|
let t22;
|
|
1456
|
-
if ($[
|
|
1388
|
+
if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1457
1389
|
t22 = /* @__PURE__ */ jsx("span", {
|
|
1458
1390
|
className: "text-muted-foreground",
|
|
1459
1391
|
children: "Created"
|
|
1460
1392
|
});
|
|
1461
|
-
$[
|
|
1462
|
-
} else t22 = $[
|
|
1393
|
+
$[61] = t22;
|
|
1394
|
+
} else t22 = $[61];
|
|
1463
1395
|
let t23;
|
|
1464
|
-
if ($[
|
|
1396
|
+
if ($[62] !== selectedJob.timestamp) {
|
|
1465
1397
|
t23 = formatDistanceToNow(selectedJob.timestamp, { addSuffix: true });
|
|
1466
|
-
$[
|
|
1467
|
-
$[
|
|
1468
|
-
} else t23 = $[
|
|
1398
|
+
$[62] = selectedJob.timestamp;
|
|
1399
|
+
$[63] = t23;
|
|
1400
|
+
} else t23 = $[63];
|
|
1469
1401
|
let t24;
|
|
1470
|
-
if ($[
|
|
1402
|
+
if ($[64] !== t23) {
|
|
1471
1403
|
t24 = /* @__PURE__ */ jsxs("div", { children: [t22, /* @__PURE__ */ jsx("div", { children: t23 })] });
|
|
1472
|
-
$[
|
|
1473
|
-
$[
|
|
1474
|
-
} else t24 = $[
|
|
1404
|
+
$[64] = t23;
|
|
1405
|
+
$[65] = t24;
|
|
1406
|
+
} else t24 = $[65];
|
|
1475
1407
|
let t25;
|
|
1476
|
-
if ($[
|
|
1408
|
+
if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1477
1409
|
t25 = /* @__PURE__ */ jsx("span", {
|
|
1478
1410
|
className: "text-muted-foreground",
|
|
1479
1411
|
children: "Attempts"
|
|
1480
1412
|
});
|
|
1481
|
-
$[
|
|
1482
|
-
} else t25 = $[
|
|
1413
|
+
$[66] = t25;
|
|
1414
|
+
} else t25 = $[66];
|
|
1483
1415
|
let t26;
|
|
1484
|
-
if ($[
|
|
1416
|
+
if ($[67] !== selectedJob.attemptsMade) {
|
|
1485
1417
|
t26 = /* @__PURE__ */ jsxs("div", { children: [t25, /* @__PURE__ */ jsx("div", {
|
|
1486
1418
|
className: "font-semibold",
|
|
1487
1419
|
children: selectedJob.attemptsMade
|
|
1488
1420
|
})] });
|
|
1489
|
-
$[
|
|
1490
|
-
$[
|
|
1491
|
-
} else t26 = $[
|
|
1421
|
+
$[67] = selectedJob.attemptsMade;
|
|
1422
|
+
$[68] = t26;
|
|
1423
|
+
} else t26 = $[68];
|
|
1492
1424
|
let t27;
|
|
1493
|
-
if ($[
|
|
1425
|
+
if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1494
1426
|
t27 = /* @__PURE__ */ jsx("span", {
|
|
1495
1427
|
className: "text-muted-foreground",
|
|
1496
1428
|
children: "Progress"
|
|
1497
1429
|
});
|
|
1498
|
-
$[
|
|
1499
|
-
} else t27 = $[
|
|
1430
|
+
$[69] = t27;
|
|
1431
|
+
} else t27 = $[69];
|
|
1500
1432
|
const t28 = typeof selectedJob.progress === "number" ? `${selectedJob.progress}%` : "-";
|
|
1501
1433
|
let t29;
|
|
1502
|
-
if ($[
|
|
1434
|
+
if ($[70] !== t28) {
|
|
1503
1435
|
t29 = /* @__PURE__ */ jsxs("div", { children: [t27, /* @__PURE__ */ jsx("div", {
|
|
1504
1436
|
className: "font-semibold",
|
|
1505
1437
|
children: t28
|
|
1506
1438
|
})] });
|
|
1507
|
-
$[
|
|
1508
|
-
$[
|
|
1509
|
-
} else t29 = $[
|
|
1439
|
+
$[70] = t28;
|
|
1440
|
+
$[71] = t29;
|
|
1441
|
+
} else t29 = $[71];
|
|
1510
1442
|
let t30;
|
|
1511
|
-
if ($[
|
|
1443
|
+
if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1512
1444
|
t30 = /* @__PURE__ */ jsx("span", {
|
|
1513
1445
|
className: "text-muted-foreground",
|
|
1514
1446
|
children: "Delay"
|
|
1515
1447
|
});
|
|
1516
|
-
$[
|
|
1517
|
-
} else t30 = $[
|
|
1448
|
+
$[72] = t30;
|
|
1449
|
+
} else t30 = $[72];
|
|
1518
1450
|
const t31 = selectedJob.delay ? `${selectedJob.delay}ms` : "-";
|
|
1519
1451
|
let t32;
|
|
1520
|
-
if ($[
|
|
1452
|
+
if ($[73] !== t31) {
|
|
1521
1453
|
t32 = /* @__PURE__ */ jsxs("div", { children: [t30, /* @__PURE__ */ jsx("div", {
|
|
1522
1454
|
className: "font-semibold",
|
|
1523
1455
|
children: t31
|
|
1524
1456
|
})] });
|
|
1525
|
-
$[
|
|
1526
|
-
$[
|
|
1527
|
-
} else t32 = $[
|
|
1457
|
+
$[73] = t31;
|
|
1458
|
+
$[74] = t32;
|
|
1459
|
+
} else t32 = $[74];
|
|
1528
1460
|
let t33;
|
|
1529
|
-
if ($[
|
|
1461
|
+
if ($[75] !== t19 || $[76] !== t21 || $[77] !== t24 || $[78] !== t26 || $[79] !== t29 || $[80] !== t32) {
|
|
1530
1462
|
t33 = /* @__PURE__ */ jsxs("div", {
|
|
1531
1463
|
className: "grid grid-cols-2 gap-4 text-sm",
|
|
1532
1464
|
children: [
|
|
@@ -1538,26 +1470,26 @@ const JobDetail = memo(() => {
|
|
|
1538
1470
|
t32
|
|
1539
1471
|
]
|
|
1540
1472
|
});
|
|
1541
|
-
$[
|
|
1542
|
-
$[
|
|
1543
|
-
$[
|
|
1544
|
-
$[
|
|
1545
|
-
$[
|
|
1546
|
-
$[
|
|
1547
|
-
$[
|
|
1548
|
-
} else t33 = $[
|
|
1473
|
+
$[75] = t19;
|
|
1474
|
+
$[76] = t21;
|
|
1475
|
+
$[77] = t24;
|
|
1476
|
+
$[78] = t26;
|
|
1477
|
+
$[79] = t29;
|
|
1478
|
+
$[80] = t32;
|
|
1479
|
+
$[81] = t33;
|
|
1480
|
+
} else t33 = $[81];
|
|
1549
1481
|
let t34;
|
|
1550
|
-
if ($[
|
|
1482
|
+
if ($[82] !== t17 || $[83] !== t33) {
|
|
1551
1483
|
t34 = /* @__PURE__ */ jsxs("div", {
|
|
1552
1484
|
className: "space-y-4",
|
|
1553
1485
|
children: [t17, t33]
|
|
1554
1486
|
});
|
|
1555
|
-
$[
|
|
1556
|
-
$[
|
|
1557
|
-
$[
|
|
1558
|
-
} else t34 = $[
|
|
1487
|
+
$[82] = t17;
|
|
1488
|
+
$[83] = t33;
|
|
1489
|
+
$[84] = t34;
|
|
1490
|
+
} else t34 = $[84];
|
|
1559
1491
|
let t35;
|
|
1560
|
-
if ($[
|
|
1492
|
+
if ($[85] !== handleClose || $[86] !== selectedJob.name || $[87] !== t12 || $[88] !== t34 || $[89] !== tabs) {
|
|
1561
1493
|
t35 = /* @__PURE__ */ jsx(Sidebar, {
|
|
1562
1494
|
onClose: handleClose,
|
|
1563
1495
|
title: t10,
|
|
@@ -1566,13 +1498,13 @@ const JobDetail = memo(() => {
|
|
|
1566
1498
|
actions: t12,
|
|
1567
1499
|
children: t34
|
|
1568
1500
|
});
|
|
1569
|
-
$[
|
|
1570
|
-
$[
|
|
1571
|
-
$[
|
|
1572
|
-
$[
|
|
1573
|
-
$[
|
|
1574
|
-
$[
|
|
1575
|
-
} else t35 = $[
|
|
1501
|
+
$[85] = handleClose;
|
|
1502
|
+
$[86] = selectedJob.name;
|
|
1503
|
+
$[87] = t12;
|
|
1504
|
+
$[88] = t34;
|
|
1505
|
+
$[89] = tabs;
|
|
1506
|
+
$[90] = t35;
|
|
1507
|
+
} else t35 = $[90];
|
|
1576
1508
|
return t35;
|
|
1577
1509
|
});
|
|
1578
1510
|
JobDetail.displayName = "JobDetail";
|
|
@@ -1595,17 +1527,13 @@ function _temp5$2(state_3) {
|
|
|
1595
1527
|
//#endregion
|
|
1596
1528
|
//#region src/components/jobs-table.tsx
|
|
1597
1529
|
const JobRow = memo((t0) => {
|
|
1598
|
-
const $ = c(
|
|
1599
|
-
if ($[0] !== "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1") {
|
|
1600
|
-
for (let $i = 0; $i < 50; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1601
|
-
$[0] = "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1";
|
|
1602
|
-
}
|
|
1530
|
+
const $ = c(49);
|
|
1603
1531
|
const { job, queueName, onSelect, isSelected } = t0;
|
|
1604
1532
|
const retryJobMutation = useRetryJob();
|
|
1605
1533
|
const removeJobMutation = useRemoveJob();
|
|
1606
1534
|
const promoteJobMutation = usePromoteJob();
|
|
1607
1535
|
let t1;
|
|
1608
|
-
if ($[
|
|
1536
|
+
if ($[0] !== job.id || $[1] !== queueName || $[2] !== retryJobMutation) {
|
|
1609
1537
|
t1 = (e) => {
|
|
1610
1538
|
e.stopPropagation();
|
|
1611
1539
|
retryJobMutation.mutate({
|
|
@@ -1613,14 +1541,14 @@ const JobRow = memo((t0) => {
|
|
|
1613
1541
|
jobId: job.id
|
|
1614
1542
|
});
|
|
1615
1543
|
};
|
|
1616
|
-
$[
|
|
1617
|
-
$[
|
|
1618
|
-
$[
|
|
1619
|
-
$[
|
|
1620
|
-
} else t1 = $[
|
|
1544
|
+
$[0] = job.id;
|
|
1545
|
+
$[1] = queueName;
|
|
1546
|
+
$[2] = retryJobMutation;
|
|
1547
|
+
$[3] = t1;
|
|
1548
|
+
} else t1 = $[3];
|
|
1621
1549
|
const handleRetry = t1;
|
|
1622
1550
|
let t2;
|
|
1623
|
-
if ($[
|
|
1551
|
+
if ($[4] !== job.id || $[5] !== queueName || $[6] !== removeJobMutation) {
|
|
1624
1552
|
t2 = (e_0) => {
|
|
1625
1553
|
e_0.stopPropagation();
|
|
1626
1554
|
removeJobMutation.mutate({
|
|
@@ -1628,14 +1556,14 @@ const JobRow = memo((t0) => {
|
|
|
1628
1556
|
jobId: job.id
|
|
1629
1557
|
});
|
|
1630
1558
|
};
|
|
1631
|
-
$[
|
|
1632
|
-
$[
|
|
1633
|
-
$[
|
|
1634
|
-
$[
|
|
1635
|
-
} else t2 = $[
|
|
1559
|
+
$[4] = job.id;
|
|
1560
|
+
$[5] = queueName;
|
|
1561
|
+
$[6] = removeJobMutation;
|
|
1562
|
+
$[7] = t2;
|
|
1563
|
+
} else t2 = $[7];
|
|
1636
1564
|
const handleRemove = t2;
|
|
1637
1565
|
let t3;
|
|
1638
|
-
if ($[
|
|
1566
|
+
if ($[8] !== job.id || $[9] !== promoteJobMutation || $[10] !== queueName) {
|
|
1639
1567
|
t3 = (e_1) => {
|
|
1640
1568
|
e_1.stopPropagation();
|
|
1641
1569
|
promoteJobMutation.mutate({
|
|
@@ -1643,63 +1571,63 @@ const JobRow = memo((t0) => {
|
|
|
1643
1571
|
jobId: job.id
|
|
1644
1572
|
});
|
|
1645
1573
|
};
|
|
1646
|
-
$[
|
|
1647
|
-
$[
|
|
1648
|
-
$[
|
|
1649
|
-
$[
|
|
1650
|
-
} else t3 = $[
|
|
1574
|
+
$[8] = job.id;
|
|
1575
|
+
$[9] = promoteJobMutation;
|
|
1576
|
+
$[10] = queueName;
|
|
1577
|
+
$[11] = t3;
|
|
1578
|
+
} else t3 = $[11];
|
|
1651
1579
|
const handlePromote = t3;
|
|
1652
1580
|
const t4 = isSelected ? "bg-muted-foreground/10 hover:bg-muted-foreground/20" : "hover:bg-muted-foreground/10";
|
|
1653
1581
|
let t5;
|
|
1654
|
-
if ($[
|
|
1582
|
+
if ($[12] !== t4) {
|
|
1655
1583
|
t5 = cn("cursor-pointer border-0", t4);
|
|
1656
|
-
$[
|
|
1657
|
-
$[
|
|
1658
|
-
} else t5 = $[
|
|
1584
|
+
$[12] = t4;
|
|
1585
|
+
$[13] = t5;
|
|
1586
|
+
} else t5 = $[13];
|
|
1659
1587
|
let t6;
|
|
1660
|
-
if ($[
|
|
1588
|
+
if ($[14] !== job.id) {
|
|
1661
1589
|
t6 = /* @__PURE__ */ jsx(TableCell, {
|
|
1662
1590
|
className: "font-mono text-xs",
|
|
1663
1591
|
children: job.id
|
|
1664
1592
|
});
|
|
1665
|
-
$[
|
|
1666
|
-
$[
|
|
1667
|
-
} else t6 = $[
|
|
1593
|
+
$[14] = job.id;
|
|
1594
|
+
$[15] = t6;
|
|
1595
|
+
} else t6 = $[15];
|
|
1668
1596
|
let t7;
|
|
1669
|
-
if ($[
|
|
1597
|
+
if ($[16] !== job.name) {
|
|
1670
1598
|
t7 = /* @__PURE__ */ jsx(TableCell, {
|
|
1671
1599
|
className: "font-medium",
|
|
1672
1600
|
children: job.name
|
|
1673
1601
|
});
|
|
1674
|
-
$[
|
|
1675
|
-
$[
|
|
1676
|
-
} else t7 = $[
|
|
1602
|
+
$[16] = job.name;
|
|
1603
|
+
$[17] = t7;
|
|
1604
|
+
} else t7 = $[17];
|
|
1677
1605
|
let t8;
|
|
1678
|
-
if ($[
|
|
1606
|
+
if ($[18] !== job.timestamp) {
|
|
1679
1607
|
t8 = formatDistanceToNow(job.timestamp, { addSuffix: true });
|
|
1680
|
-
$[
|
|
1681
|
-
$[
|
|
1682
|
-
} else t8 = $[
|
|
1608
|
+
$[18] = job.timestamp;
|
|
1609
|
+
$[19] = t8;
|
|
1610
|
+
} else t8 = $[19];
|
|
1683
1611
|
let t9;
|
|
1684
|
-
if ($[
|
|
1612
|
+
if ($[20] !== t8) {
|
|
1685
1613
|
t9 = /* @__PURE__ */ jsx(TableCell, {
|
|
1686
1614
|
className: "text-xs text-muted-foreground",
|
|
1687
1615
|
children: t8
|
|
1688
1616
|
});
|
|
1689
|
-
$[
|
|
1690
|
-
$[
|
|
1691
|
-
} else t9 = $[
|
|
1617
|
+
$[20] = t8;
|
|
1618
|
+
$[21] = t9;
|
|
1619
|
+
} else t9 = $[21];
|
|
1692
1620
|
let t10;
|
|
1693
|
-
if ($[
|
|
1621
|
+
if ($[22] !== job.attemptsMade) {
|
|
1694
1622
|
t10 = /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx("span", {
|
|
1695
1623
|
className: "text-xs",
|
|
1696
1624
|
children: job.attemptsMade
|
|
1697
1625
|
}) });
|
|
1698
|
-
$[
|
|
1699
|
-
$[
|
|
1700
|
-
} else t10 = $[
|
|
1626
|
+
$[22] = job.attemptsMade;
|
|
1627
|
+
$[23] = t10;
|
|
1628
|
+
} else t10 = $[23];
|
|
1701
1629
|
let t11;
|
|
1702
|
-
if ($[
|
|
1630
|
+
if ($[24] !== job.progress) {
|
|
1703
1631
|
t11 = /* @__PURE__ */ jsx(TableCell, { children: typeof job.progress === "number" ? /* @__PURE__ */ jsxs("div", {
|
|
1704
1632
|
className: "flex items-center gap-2",
|
|
1705
1633
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -1716,11 +1644,11 @@ const JobRow = memo((t0) => {
|
|
|
1716
1644
|
className: "text-xs text-muted-foreground",
|
|
1717
1645
|
children: "-"
|
|
1718
1646
|
}) });
|
|
1719
|
-
$[
|
|
1720
|
-
$[
|
|
1721
|
-
} else t11 = $[
|
|
1647
|
+
$[24] = job.progress;
|
|
1648
|
+
$[25] = t11;
|
|
1649
|
+
} else t11 = $[25];
|
|
1722
1650
|
let t12;
|
|
1723
|
-
if ($[
|
|
1651
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1724
1652
|
t12 = /* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
1725
1653
|
asChild: true,
|
|
1726
1654
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -1730,45 +1658,45 @@ const JobRow = memo((t0) => {
|
|
|
1730
1658
|
children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
|
|
1731
1659
|
})
|
|
1732
1660
|
});
|
|
1733
|
-
$[
|
|
1734
|
-
} else t12 = $[
|
|
1661
|
+
$[26] = t12;
|
|
1662
|
+
} else t12 = $[26];
|
|
1735
1663
|
let t13;
|
|
1736
|
-
if ($[
|
|
1664
|
+
if ($[27] !== handleRetry || $[28] !== job.failedReason) {
|
|
1737
1665
|
t13 = job.failedReason && /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
1738
1666
|
onClick: handleRetry,
|
|
1739
1667
|
children: [/* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-4 w-4" }), "Retry"]
|
|
1740
1668
|
});
|
|
1741
|
-
$[
|
|
1742
|
-
$[
|
|
1743
|
-
$[
|
|
1744
|
-
} else t13 = $[
|
|
1669
|
+
$[27] = handleRetry;
|
|
1670
|
+
$[28] = job.failedReason;
|
|
1671
|
+
$[29] = t13;
|
|
1672
|
+
} else t13 = $[29];
|
|
1745
1673
|
let t14;
|
|
1746
|
-
if ($[
|
|
1674
|
+
if ($[30] !== handlePromote || $[31] !== job.delay) {
|
|
1747
1675
|
t14 = job.delay && job.delay > 0 && /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
1748
1676
|
onClick: handlePromote,
|
|
1749
1677
|
children: [/* @__PURE__ */ jsx(ArrowUpRight, { className: "mr-2 h-4 w-4" }), "Promote"]
|
|
1750
1678
|
});
|
|
1751
|
-
$[
|
|
1752
|
-
$[
|
|
1753
|
-
$[
|
|
1754
|
-
} else t14 = $[
|
|
1679
|
+
$[30] = handlePromote;
|
|
1680
|
+
$[31] = job.delay;
|
|
1681
|
+
$[32] = t14;
|
|
1682
|
+
} else t14 = $[32];
|
|
1755
1683
|
let t15;
|
|
1756
|
-
if ($[
|
|
1684
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1757
1685
|
t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
1758
|
-
$[
|
|
1759
|
-
} else t15 = $[
|
|
1686
|
+
$[33] = t15;
|
|
1687
|
+
} else t15 = $[33];
|
|
1760
1688
|
let t16;
|
|
1761
|
-
if ($[
|
|
1689
|
+
if ($[34] !== handleRemove) {
|
|
1762
1690
|
t16 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
1763
1691
|
onClick: handleRemove,
|
|
1764
1692
|
className: "text-destructive",
|
|
1765
1693
|
children: [t15, "Remove"]
|
|
1766
1694
|
});
|
|
1767
|
-
$[
|
|
1768
|
-
$[
|
|
1769
|
-
} else t16 = $[
|
|
1695
|
+
$[34] = handleRemove;
|
|
1696
|
+
$[35] = t16;
|
|
1697
|
+
} else t16 = $[35];
|
|
1770
1698
|
let t17;
|
|
1771
|
-
if ($[
|
|
1699
|
+
if ($[36] !== t13 || $[37] !== t14 || $[38] !== t16) {
|
|
1772
1700
|
t17 = /* @__PURE__ */ jsx(TableCell, {
|
|
1773
1701
|
onClick: _temp$3,
|
|
1774
1702
|
children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [t12, /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
@@ -1781,13 +1709,13 @@ const JobRow = memo((t0) => {
|
|
|
1781
1709
|
]
|
|
1782
1710
|
})] })
|
|
1783
1711
|
});
|
|
1784
|
-
$[
|
|
1785
|
-
$[
|
|
1786
|
-
$[
|
|
1787
|
-
$[
|
|
1788
|
-
} else t17 = $[
|
|
1712
|
+
$[36] = t13;
|
|
1713
|
+
$[37] = t14;
|
|
1714
|
+
$[38] = t16;
|
|
1715
|
+
$[39] = t17;
|
|
1716
|
+
} else t17 = $[39];
|
|
1789
1717
|
let t18;
|
|
1790
|
-
if ($[
|
|
1718
|
+
if ($[40] !== onSelect || $[41] !== t10 || $[42] !== t11 || $[43] !== t17 || $[44] !== t5 || $[45] !== t6 || $[46] !== t7 || $[47] !== t9) {
|
|
1791
1719
|
t18 = /* @__PURE__ */ jsxs(TableRow, {
|
|
1792
1720
|
onClick: onSelect,
|
|
1793
1721
|
className: t5,
|
|
@@ -1800,83 +1728,79 @@ const JobRow = memo((t0) => {
|
|
|
1800
1728
|
t17
|
|
1801
1729
|
]
|
|
1802
1730
|
});
|
|
1803
|
-
$[
|
|
1804
|
-
$[
|
|
1805
|
-
$[
|
|
1806
|
-
$[
|
|
1807
|
-
$[
|
|
1808
|
-
$[
|
|
1809
|
-
$[
|
|
1810
|
-
$[
|
|
1811
|
-
$[
|
|
1812
|
-
} else t18 = $[
|
|
1731
|
+
$[40] = onSelect;
|
|
1732
|
+
$[41] = t10;
|
|
1733
|
+
$[42] = t11;
|
|
1734
|
+
$[43] = t17;
|
|
1735
|
+
$[44] = t5;
|
|
1736
|
+
$[45] = t6;
|
|
1737
|
+
$[46] = t7;
|
|
1738
|
+
$[47] = t9;
|
|
1739
|
+
$[48] = t18;
|
|
1740
|
+
} else t18 = $[48];
|
|
1813
1741
|
return t18;
|
|
1814
1742
|
});
|
|
1815
1743
|
JobRow.displayName = "JobRow";
|
|
1816
1744
|
const JobsTable = memo(() => {
|
|
1817
|
-
const $ = c(
|
|
1818
|
-
if ($[0] !== "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1") {
|
|
1819
|
-
for (let $i = 0; $i < 21; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1820
|
-
$[0] = "35e57f18a759ee630724f8001ffcc43b791357fe1eb5c9a6692b76ef0e6628e1";
|
|
1821
|
-
}
|
|
1745
|
+
const $ = c(20);
|
|
1822
1746
|
const { data: t0, isLoading } = useJobsQuery();
|
|
1823
1747
|
let t1;
|
|
1824
|
-
if ($[
|
|
1748
|
+
if ($[0] !== t0) {
|
|
1825
1749
|
t1 = t0 === void 0 ? [] : t0;
|
|
1826
|
-
$[
|
|
1827
|
-
$[
|
|
1828
|
-
} else t1 = $[
|
|
1750
|
+
$[0] = t0;
|
|
1751
|
+
$[1] = t1;
|
|
1752
|
+
} else t1 = $[1];
|
|
1829
1753
|
const jobs = t1;
|
|
1830
1754
|
const selectedQueue = useBullMQStore(_temp2$3);
|
|
1831
1755
|
const selectedJob = useBullMQStore(_temp3$2);
|
|
1832
1756
|
const setSelectedJob = useBullMQStore(_temp4$1);
|
|
1833
1757
|
const setJobDetailOpen = useBullMQStore(_temp5$1);
|
|
1834
1758
|
let t2;
|
|
1835
|
-
if ($[
|
|
1759
|
+
if ($[2] !== setJobDetailOpen || $[3] !== setSelectedJob) {
|
|
1836
1760
|
t2 = (job) => {
|
|
1837
1761
|
setSelectedJob(job);
|
|
1838
1762
|
setJobDetailOpen(true);
|
|
1839
1763
|
};
|
|
1840
|
-
$[
|
|
1841
|
-
$[
|
|
1842
|
-
$[
|
|
1843
|
-
} else t2 = $[
|
|
1764
|
+
$[2] = setJobDetailOpen;
|
|
1765
|
+
$[3] = setSelectedJob;
|
|
1766
|
+
$[4] = t2;
|
|
1767
|
+
} else t2 = $[4];
|
|
1844
1768
|
const handleSelectJob = t2;
|
|
1845
1769
|
if (!selectedQueue) {
|
|
1846
1770
|
let t3$1;
|
|
1847
|
-
if ($[
|
|
1771
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1848
1772
|
t3$1 = /* @__PURE__ */ jsx("div", {
|
|
1849
1773
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
1850
1774
|
children: "Select a queue to view jobs"
|
|
1851
1775
|
});
|
|
1852
|
-
$[
|
|
1853
|
-
} else t3$1 = $[
|
|
1776
|
+
$[5] = t3$1;
|
|
1777
|
+
} else t3$1 = $[5];
|
|
1854
1778
|
return t3$1;
|
|
1855
1779
|
}
|
|
1856
1780
|
if (isLoading) {
|
|
1857
1781
|
let t3$1;
|
|
1858
|
-
if ($[
|
|
1782
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1859
1783
|
t3$1 = /* @__PURE__ */ jsx("div", {
|
|
1860
1784
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
1861
1785
|
children: "Loading jobs..."
|
|
1862
1786
|
});
|
|
1863
|
-
$[
|
|
1864
|
-
} else t3$1 = $[
|
|
1787
|
+
$[6] = t3$1;
|
|
1788
|
+
} else t3$1 = $[6];
|
|
1865
1789
|
return t3$1;
|
|
1866
1790
|
}
|
|
1867
1791
|
if (jobs.length === 0) {
|
|
1868
1792
|
let t3$1;
|
|
1869
|
-
if ($[
|
|
1793
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1870
1794
|
t3$1 = /* @__PURE__ */ jsx("div", {
|
|
1871
1795
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
1872
1796
|
children: "No jobs in this status"
|
|
1873
1797
|
});
|
|
1874
|
-
$[
|
|
1875
|
-
} else t3$1 = $[
|
|
1798
|
+
$[7] = t3$1;
|
|
1799
|
+
} else t3$1 = $[7];
|
|
1876
1800
|
return t3$1;
|
|
1877
1801
|
}
|
|
1878
1802
|
let t3;
|
|
1879
|
-
if ($[
|
|
1803
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1880
1804
|
t3 = /* @__PURE__ */ jsx(TableHeader, {
|
|
1881
1805
|
className: "sticky top-0 bg-background/95 backdrop-blur-sm",
|
|
1882
1806
|
children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
@@ -1903,36 +1827,36 @@ const JobsTable = memo(() => {
|
|
|
1903
1827
|
})
|
|
1904
1828
|
] })
|
|
1905
1829
|
});
|
|
1906
|
-
$[
|
|
1907
|
-
} else t3 = $[
|
|
1830
|
+
$[8] = t3;
|
|
1831
|
+
} else t3 = $[8];
|
|
1908
1832
|
let t4;
|
|
1909
|
-
if ($[
|
|
1833
|
+
if ($[9] !== handleSelectJob || $[10] !== jobs || $[11] !== selectedJob?.id || $[12] !== selectedQueue) {
|
|
1910
1834
|
let t5$1;
|
|
1911
|
-
if ($[
|
|
1835
|
+
if ($[14] !== handleSelectJob || $[15] !== selectedJob?.id || $[16] !== selectedQueue) {
|
|
1912
1836
|
t5$1 = (job_0) => /* @__PURE__ */ jsx(JobRow, {
|
|
1913
1837
|
job: job_0,
|
|
1914
1838
|
queueName: selectedQueue.name,
|
|
1915
1839
|
onSelect: () => handleSelectJob(job_0),
|
|
1916
1840
|
isSelected: selectedJob?.id === job_0.id
|
|
1917
1841
|
}, job_0.id);
|
|
1918
|
-
$[
|
|
1919
|
-
$[
|
|
1920
|
-
$[
|
|
1921
|
-
$[
|
|
1922
|
-
} else t5$1 = $[
|
|
1842
|
+
$[14] = handleSelectJob;
|
|
1843
|
+
$[15] = selectedJob?.id;
|
|
1844
|
+
$[16] = selectedQueue;
|
|
1845
|
+
$[17] = t5$1;
|
|
1846
|
+
} else t5$1 = $[17];
|
|
1923
1847
|
t4 = jobs.map(t5$1);
|
|
1924
|
-
$[
|
|
1925
|
-
$[
|
|
1926
|
-
$[
|
|
1927
|
-
$[
|
|
1928
|
-
$[
|
|
1929
|
-
} else t4 = $[
|
|
1848
|
+
$[9] = handleSelectJob;
|
|
1849
|
+
$[10] = jobs;
|
|
1850
|
+
$[11] = selectedJob?.id;
|
|
1851
|
+
$[12] = selectedQueue;
|
|
1852
|
+
$[13] = t4;
|
|
1853
|
+
} else t4 = $[13];
|
|
1930
1854
|
let t5;
|
|
1931
|
-
if ($[
|
|
1855
|
+
if ($[18] !== t4) {
|
|
1932
1856
|
t5 = /* @__PURE__ */ jsxs(Table, { children: [t3, /* @__PURE__ */ jsx(TableBody, { children: t4 })] });
|
|
1933
|
-
$[
|
|
1934
|
-
$[
|
|
1935
|
-
} else t5 = $[
|
|
1857
|
+
$[18] = t4;
|
|
1858
|
+
$[19] = t5;
|
|
1859
|
+
} else t5 = $[19];
|
|
1936
1860
|
return t5;
|
|
1937
1861
|
});
|
|
1938
1862
|
JobsTable.displayName = "JobsTable";
|
|
@@ -1977,128 +1901,124 @@ const STATUS_TABS = [
|
|
|
1977
1901
|
}
|
|
1978
1902
|
];
|
|
1979
1903
|
const QueueDetail = memo(() => {
|
|
1980
|
-
const $ = c(
|
|
1981
|
-
if ($[0] !== "ec763ba5d94c93fbec6c5d401f02a104160374351538eec66a12a09486a09276") {
|
|
1982
|
-
for (let $i = 0; $i < 115; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1983
|
-
$[0] = "ec763ba5d94c93fbec6c5d401f02a104160374351538eec66a12a09486a09276";
|
|
1984
|
-
}
|
|
1904
|
+
const $ = c(114);
|
|
1985
1905
|
const queryClient$1 = useQueryClient();
|
|
1986
1906
|
const selectedQueue = useBullMQStore(_temp$2);
|
|
1987
1907
|
const selectedStatus = useBullMQStore(_temp2$2);
|
|
1988
1908
|
const setSelectedStatus = useBullMQStore(_temp3$1);
|
|
1989
1909
|
const { pauseQueue, resumeQueue, cleanQueue, drainQueue } = useQueues();
|
|
1990
1910
|
let t0;
|
|
1991
|
-
if ($[
|
|
1911
|
+
if ($[0] !== pauseQueue || $[1] !== selectedQueue) {
|
|
1992
1912
|
t0 = async () => {
|
|
1993
1913
|
if (!selectedQueue) return;
|
|
1994
1914
|
await pauseQueue(selectedQueue.name);
|
|
1995
1915
|
};
|
|
1996
|
-
$[
|
|
1997
|
-
$[
|
|
1998
|
-
$[
|
|
1999
|
-
} else t0 = $[
|
|
1916
|
+
$[0] = pauseQueue;
|
|
1917
|
+
$[1] = selectedQueue;
|
|
1918
|
+
$[2] = t0;
|
|
1919
|
+
} else t0 = $[2];
|
|
2000
1920
|
const handlePause = t0;
|
|
2001
1921
|
let t1;
|
|
2002
|
-
if ($[
|
|
1922
|
+
if ($[3] !== resumeQueue || $[4] !== selectedQueue) {
|
|
2003
1923
|
t1 = async () => {
|
|
2004
1924
|
if (!selectedQueue) return;
|
|
2005
1925
|
await resumeQueue(selectedQueue.name);
|
|
2006
1926
|
};
|
|
2007
|
-
$[
|
|
2008
|
-
$[
|
|
2009
|
-
$[
|
|
2010
|
-
} else t1 = $[
|
|
1927
|
+
$[3] = resumeQueue;
|
|
1928
|
+
$[4] = selectedQueue;
|
|
1929
|
+
$[5] = t1;
|
|
1930
|
+
} else t1 = $[5];
|
|
2011
1931
|
const handleResume = t1;
|
|
2012
1932
|
let t2;
|
|
2013
|
-
if ($[
|
|
1933
|
+
if ($[6] !== cleanQueue || $[7] !== selectedQueue) {
|
|
2014
1934
|
t2 = async () => {
|
|
2015
1935
|
if (!selectedQueue) return;
|
|
2016
1936
|
await cleanQueue(selectedQueue.name, "completed", 0, 1e3);
|
|
2017
1937
|
};
|
|
2018
|
-
$[
|
|
2019
|
-
$[
|
|
2020
|
-
$[
|
|
2021
|
-
} else t2 = $[
|
|
1938
|
+
$[6] = cleanQueue;
|
|
1939
|
+
$[7] = selectedQueue;
|
|
1940
|
+
$[8] = t2;
|
|
1941
|
+
} else t2 = $[8];
|
|
2022
1942
|
const handleCleanCompleted = t2;
|
|
2023
1943
|
let t3;
|
|
2024
|
-
if ($[
|
|
1944
|
+
if ($[9] !== cleanQueue || $[10] !== selectedQueue) {
|
|
2025
1945
|
t3 = async () => {
|
|
2026
1946
|
if (!selectedQueue) return;
|
|
2027
1947
|
await cleanQueue(selectedQueue.name, "failed", 0, 1e3);
|
|
2028
1948
|
};
|
|
2029
|
-
$[
|
|
2030
|
-
$[
|
|
2031
|
-
$[
|
|
2032
|
-
} else t3 = $[
|
|
1949
|
+
$[9] = cleanQueue;
|
|
1950
|
+
$[10] = selectedQueue;
|
|
1951
|
+
$[11] = t3;
|
|
1952
|
+
} else t3 = $[11];
|
|
2033
1953
|
const handleCleanFailed = t3;
|
|
2034
1954
|
let t4;
|
|
2035
|
-
if ($[
|
|
1955
|
+
if ($[12] !== drainQueue || $[13] !== selectedQueue) {
|
|
2036
1956
|
t4 = async () => {
|
|
2037
1957
|
if (!selectedQueue) return;
|
|
2038
1958
|
await drainQueue(selectedQueue.name);
|
|
2039
1959
|
};
|
|
2040
|
-
$[
|
|
2041
|
-
$[
|
|
2042
|
-
$[
|
|
2043
|
-
} else t4 = $[
|
|
1960
|
+
$[12] = drainQueue;
|
|
1961
|
+
$[13] = selectedQueue;
|
|
1962
|
+
$[14] = t4;
|
|
1963
|
+
} else t4 = $[14];
|
|
2044
1964
|
const handleDrain = t4;
|
|
2045
1965
|
let t5;
|
|
2046
|
-
if ($[
|
|
1966
|
+
if ($[15] !== queryClient$1 || $[16] !== selectedQueue) {
|
|
2047
1967
|
t5 = () => {
|
|
2048
1968
|
if (!selectedQueue) return;
|
|
2049
1969
|
queryClient$1.invalidateQueries({ queryKey: ["jobs", selectedQueue.name] });
|
|
2050
1970
|
};
|
|
2051
|
-
$[
|
|
2052
|
-
$[
|
|
2053
|
-
$[
|
|
2054
|
-
} else t5 = $[
|
|
1971
|
+
$[15] = queryClient$1;
|
|
1972
|
+
$[16] = selectedQueue;
|
|
1973
|
+
$[17] = t5;
|
|
1974
|
+
} else t5 = $[17];
|
|
2055
1975
|
const handleRefresh = t5;
|
|
2056
1976
|
if (!selectedQueue) {
|
|
2057
1977
|
let t6$1;
|
|
2058
|
-
if ($[
|
|
1978
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2059
1979
|
t6$1 = /* @__PURE__ */ jsx("div", {
|
|
2060
1980
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
2061
1981
|
children: "Select a queue from the list to view details"
|
|
2062
1982
|
});
|
|
2063
|
-
$[
|
|
2064
|
-
} else t6$1 = $[
|
|
1983
|
+
$[18] = t6$1;
|
|
1984
|
+
} else t6$1 = $[18];
|
|
2065
1985
|
return t6$1;
|
|
2066
1986
|
}
|
|
2067
1987
|
let t6;
|
|
2068
|
-
if ($[
|
|
1988
|
+
if ($[19] !== selectedQueue.displayName) {
|
|
2069
1989
|
t6 = /* @__PURE__ */ jsx("h2", {
|
|
2070
1990
|
className: "font-semibold text-lg",
|
|
2071
1991
|
children: selectedQueue.displayName
|
|
2072
1992
|
});
|
|
2073
|
-
$[
|
|
2074
|
-
$[
|
|
2075
|
-
} else t6 = $[
|
|
1993
|
+
$[19] = selectedQueue.displayName;
|
|
1994
|
+
$[20] = t6;
|
|
1995
|
+
} else t6 = $[20];
|
|
2076
1996
|
let t7;
|
|
2077
|
-
if ($[
|
|
1997
|
+
if ($[21] !== selectedQueue.isPaused) {
|
|
2078
1998
|
t7 = selectedQueue.isPaused && /* @__PURE__ */ jsx("span", {
|
|
2079
1999
|
className: "px-2 py-0.5 text-xs rounded bg-yellow-500/20 text-yellow-600",
|
|
2080
2000
|
children: "Paused"
|
|
2081
2001
|
});
|
|
2082
|
-
$[
|
|
2083
|
-
$[
|
|
2084
|
-
} else t7 = $[
|
|
2002
|
+
$[21] = selectedQueue.isPaused;
|
|
2003
|
+
$[22] = t7;
|
|
2004
|
+
} else t7 = $[22];
|
|
2085
2005
|
let t8;
|
|
2086
|
-
if ($[
|
|
2006
|
+
if ($[23] !== t6 || $[24] !== t7) {
|
|
2087
2007
|
t8 = /* @__PURE__ */ jsxs("div", {
|
|
2088
2008
|
className: "flex items-center gap-3",
|
|
2089
2009
|
children: [t6, t7]
|
|
2090
2010
|
});
|
|
2091
|
-
$[
|
|
2092
|
-
$[
|
|
2093
|
-
$[
|
|
2094
|
-
} else t8 = $[
|
|
2011
|
+
$[23] = t6;
|
|
2012
|
+
$[24] = t7;
|
|
2013
|
+
$[25] = t8;
|
|
2014
|
+
} else t8 = $[25];
|
|
2095
2015
|
let t9;
|
|
2096
|
-
if ($[
|
|
2016
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2097
2017
|
t9 = /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" });
|
|
2098
|
-
$[
|
|
2099
|
-
} else t9 = $[
|
|
2018
|
+
$[26] = t9;
|
|
2019
|
+
} else t9 = $[26];
|
|
2100
2020
|
let t10;
|
|
2101
|
-
if ($[
|
|
2021
|
+
if ($[27] !== handleRefresh) {
|
|
2102
2022
|
t10 = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
2103
2023
|
asChild: true,
|
|
2104
2024
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -2108,22 +2028,22 @@ const QueueDetail = memo(() => {
|
|
|
2108
2028
|
children: t9
|
|
2109
2029
|
})
|
|
2110
2030
|
});
|
|
2111
|
-
$[
|
|
2112
|
-
$[
|
|
2113
|
-
} else t10 = $[
|
|
2031
|
+
$[27] = handleRefresh;
|
|
2032
|
+
$[28] = t10;
|
|
2033
|
+
} else t10 = $[28];
|
|
2114
2034
|
let t11;
|
|
2115
|
-
if ($[
|
|
2035
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2116
2036
|
t11 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Refresh queue stats and jobs list" }) });
|
|
2117
|
-
$[
|
|
2118
|
-
} else t11 = $[
|
|
2037
|
+
$[29] = t11;
|
|
2038
|
+
} else t11 = $[29];
|
|
2119
2039
|
let t12;
|
|
2120
|
-
if ($[
|
|
2040
|
+
if ($[30] !== t10) {
|
|
2121
2041
|
t12 = /* @__PURE__ */ jsxs(Tooltip, { children: [t10, t11] });
|
|
2122
|
-
$[
|
|
2123
|
-
$[
|
|
2124
|
-
} else t12 = $[
|
|
2042
|
+
$[30] = t10;
|
|
2043
|
+
$[31] = t12;
|
|
2044
|
+
} else t12 = $[31];
|
|
2125
2045
|
let t13;
|
|
2126
|
-
if ($[
|
|
2046
|
+
if ($[32] !== handlePause || $[33] !== handleResume || $[34] !== selectedQueue.isPaused) {
|
|
2127
2047
|
t13 = selectedQueue.isPaused ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
2128
2048
|
asChild: true,
|
|
2129
2049
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
@@ -2141,13 +2061,13 @@ const QueueDetail = memo(() => {
|
|
|
2141
2061
|
children: [/* @__PURE__ */ jsx(Pause, { className: "mr-2 h-4 w-4" }), "Pause"]
|
|
2142
2062
|
})
|
|
2143
2063
|
}), /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Stop workers from picking up new jobs" }) })] });
|
|
2144
|
-
$[
|
|
2145
|
-
$[
|
|
2146
|
-
$[
|
|
2147
|
-
$[
|
|
2148
|
-
} else t13 = $[
|
|
2064
|
+
$[32] = handlePause;
|
|
2065
|
+
$[33] = handleResume;
|
|
2066
|
+
$[34] = selectedQueue.isPaused;
|
|
2067
|
+
$[35] = t13;
|
|
2068
|
+
} else t13 = $[35];
|
|
2149
2069
|
let t14;
|
|
2150
|
-
if ($[
|
|
2070
|
+
if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2151
2071
|
t14 = /* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
2152
2072
|
asChild: true,
|
|
2153
2073
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -2156,58 +2076,58 @@ const QueueDetail = memo(() => {
|
|
|
2156
2076
|
children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
|
|
2157
2077
|
})
|
|
2158
2078
|
});
|
|
2159
|
-
$[
|
|
2160
|
-
} else t14 = $[
|
|
2079
|
+
$[36] = t14;
|
|
2080
|
+
} else t14 = $[36];
|
|
2161
2081
|
let t15;
|
|
2162
|
-
if ($[
|
|
2082
|
+
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2163
2083
|
t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
2164
|
-
$[
|
|
2165
|
-
} else t15 = $[
|
|
2084
|
+
$[37] = t15;
|
|
2085
|
+
} else t15 = $[37];
|
|
2166
2086
|
let t16;
|
|
2167
|
-
if ($[
|
|
2087
|
+
if ($[38] !== handleCleanCompleted) {
|
|
2168
2088
|
t16 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
2169
2089
|
onClick: handleCleanCompleted,
|
|
2170
2090
|
children: [t15, "Clean Completed"]
|
|
2171
2091
|
});
|
|
2172
|
-
$[
|
|
2173
|
-
$[
|
|
2174
|
-
} else t16 = $[
|
|
2092
|
+
$[38] = handleCleanCompleted;
|
|
2093
|
+
$[39] = t16;
|
|
2094
|
+
} else t16 = $[39];
|
|
2175
2095
|
let t17;
|
|
2176
|
-
if ($[
|
|
2096
|
+
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2177
2097
|
t17 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
2178
|
-
$[
|
|
2179
|
-
} else t17 = $[
|
|
2098
|
+
$[40] = t17;
|
|
2099
|
+
} else t17 = $[40];
|
|
2180
2100
|
let t18;
|
|
2181
|
-
if ($[
|
|
2101
|
+
if ($[41] !== handleCleanFailed) {
|
|
2182
2102
|
t18 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
2183
2103
|
onClick: handleCleanFailed,
|
|
2184
2104
|
children: [t17, "Clean Failed"]
|
|
2185
2105
|
});
|
|
2186
|
-
$[
|
|
2187
|
-
$[
|
|
2188
|
-
} else t18 = $[
|
|
2106
|
+
$[41] = handleCleanFailed;
|
|
2107
|
+
$[42] = t18;
|
|
2108
|
+
} else t18 = $[42];
|
|
2189
2109
|
let t19;
|
|
2190
|
-
if ($[
|
|
2110
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2191
2111
|
t19 = /* @__PURE__ */ jsx(DropdownMenuSeparator, {});
|
|
2192
|
-
$[
|
|
2193
|
-
} else t19 = $[
|
|
2112
|
+
$[43] = t19;
|
|
2113
|
+
} else t19 = $[43];
|
|
2194
2114
|
let t20;
|
|
2195
|
-
if ($[
|
|
2115
|
+
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2196
2116
|
t20 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
2197
|
-
$[
|
|
2198
|
-
} else t20 = $[
|
|
2117
|
+
$[44] = t20;
|
|
2118
|
+
} else t20 = $[44];
|
|
2199
2119
|
let t21;
|
|
2200
|
-
if ($[
|
|
2120
|
+
if ($[45] !== handleDrain) {
|
|
2201
2121
|
t21 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
2202
2122
|
onClick: handleDrain,
|
|
2203
2123
|
className: "text-destructive",
|
|
2204
2124
|
children: [t20, "Drain Queue"]
|
|
2205
2125
|
});
|
|
2206
|
-
$[
|
|
2207
|
-
$[
|
|
2208
|
-
} else t21 = $[
|
|
2126
|
+
$[45] = handleDrain;
|
|
2127
|
+
$[46] = t21;
|
|
2128
|
+
} else t21 = $[46];
|
|
2209
2129
|
let t22;
|
|
2210
|
-
if ($[
|
|
2130
|
+
if ($[47] !== t16 || $[48] !== t18 || $[49] !== t21) {
|
|
2211
2131
|
t22 = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
2212
2132
|
asChild: true,
|
|
2213
2133
|
children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [t14, /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
@@ -2221,24 +2141,24 @@ const QueueDetail = memo(() => {
|
|
|
2221
2141
|
]
|
|
2222
2142
|
})] })
|
|
2223
2143
|
});
|
|
2224
|
-
$[
|
|
2225
|
-
$[
|
|
2226
|
-
$[
|
|
2227
|
-
$[
|
|
2228
|
-
} else t22 = $[
|
|
2144
|
+
$[47] = t16;
|
|
2145
|
+
$[48] = t18;
|
|
2146
|
+
$[49] = t21;
|
|
2147
|
+
$[50] = t22;
|
|
2148
|
+
} else t22 = $[50];
|
|
2229
2149
|
let t23;
|
|
2230
|
-
if ($[
|
|
2150
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2231
2151
|
t23 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "More actions" }) });
|
|
2232
|
-
$[
|
|
2233
|
-
} else t23 = $[
|
|
2152
|
+
$[51] = t23;
|
|
2153
|
+
} else t23 = $[51];
|
|
2234
2154
|
let t24;
|
|
2235
|
-
if ($[
|
|
2155
|
+
if ($[52] !== t22) {
|
|
2236
2156
|
t24 = /* @__PURE__ */ jsxs(Tooltip, { children: [t22, t23] });
|
|
2237
|
-
$[
|
|
2238
|
-
$[
|
|
2239
|
-
} else t24 = $[
|
|
2157
|
+
$[52] = t22;
|
|
2158
|
+
$[53] = t24;
|
|
2159
|
+
} else t24 = $[53];
|
|
2240
2160
|
let t25;
|
|
2241
|
-
if ($[
|
|
2161
|
+
if ($[54] !== t12 || $[55] !== t13 || $[56] !== t24) {
|
|
2242
2162
|
t25 = /* @__PURE__ */ jsxs("div", {
|
|
2243
2163
|
className: "flex items-center gap-2",
|
|
2244
2164
|
children: [
|
|
@@ -2247,161 +2167,161 @@ const QueueDetail = memo(() => {
|
|
|
2247
2167
|
t24
|
|
2248
2168
|
]
|
|
2249
2169
|
});
|
|
2250
|
-
$[
|
|
2251
|
-
$[
|
|
2252
|
-
$[
|
|
2253
|
-
$[
|
|
2254
|
-
} else t25 = $[
|
|
2170
|
+
$[54] = t12;
|
|
2171
|
+
$[55] = t13;
|
|
2172
|
+
$[56] = t24;
|
|
2173
|
+
$[57] = t25;
|
|
2174
|
+
} else t25 = $[57];
|
|
2255
2175
|
let t26;
|
|
2256
|
-
if ($[
|
|
2176
|
+
if ($[58] !== t25 || $[59] !== t8) {
|
|
2257
2177
|
t26 = /* @__PURE__ */ jsxs("div", {
|
|
2258
2178
|
className: "flex items-center justify-between p-3 border-b border-border",
|
|
2259
2179
|
children: [t8, t25]
|
|
2260
2180
|
});
|
|
2261
|
-
$[
|
|
2262
|
-
$[
|
|
2263
|
-
$[
|
|
2264
|
-
} else t26 = $[
|
|
2181
|
+
$[58] = t25;
|
|
2182
|
+
$[59] = t8;
|
|
2183
|
+
$[60] = t26;
|
|
2184
|
+
} else t26 = $[60];
|
|
2265
2185
|
let t27;
|
|
2266
|
-
if ($[
|
|
2186
|
+
if ($[61] !== selectedQueue.stats.waiting) {
|
|
2267
2187
|
t27 = /* @__PURE__ */ jsx("div", {
|
|
2268
2188
|
className: "text-2xl font-bold text-blue-500",
|
|
2269
2189
|
children: selectedQueue.stats.waiting
|
|
2270
2190
|
});
|
|
2271
|
-
$[
|
|
2272
|
-
$[
|
|
2273
|
-
} else t27 = $[
|
|
2191
|
+
$[61] = selectedQueue.stats.waiting;
|
|
2192
|
+
$[62] = t27;
|
|
2193
|
+
} else t27 = $[62];
|
|
2274
2194
|
let t28;
|
|
2275
|
-
if ($[
|
|
2195
|
+
if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2276
2196
|
t28 = /* @__PURE__ */ jsx("div", {
|
|
2277
2197
|
className: "text-xs text-muted-foreground",
|
|
2278
2198
|
children: "Waiting"
|
|
2279
2199
|
});
|
|
2280
|
-
$[
|
|
2281
|
-
} else t28 = $[
|
|
2200
|
+
$[63] = t28;
|
|
2201
|
+
} else t28 = $[63];
|
|
2282
2202
|
let t29;
|
|
2283
|
-
if ($[
|
|
2203
|
+
if ($[64] !== t27) {
|
|
2284
2204
|
t29 = /* @__PURE__ */ jsxs("div", { children: [t27, t28] });
|
|
2285
|
-
$[
|
|
2286
|
-
$[
|
|
2287
|
-
} else t29 = $[
|
|
2205
|
+
$[64] = t27;
|
|
2206
|
+
$[65] = t29;
|
|
2207
|
+
} else t29 = $[65];
|
|
2288
2208
|
let t30;
|
|
2289
|
-
if ($[
|
|
2209
|
+
if ($[66] !== selectedQueue.stats.active) {
|
|
2290
2210
|
t30 = /* @__PURE__ */ jsx("div", {
|
|
2291
2211
|
className: "text-2xl font-bold text-yellow-500",
|
|
2292
2212
|
children: selectedQueue.stats.active
|
|
2293
2213
|
});
|
|
2294
|
-
$[
|
|
2295
|
-
$[
|
|
2296
|
-
} else t30 = $[
|
|
2214
|
+
$[66] = selectedQueue.stats.active;
|
|
2215
|
+
$[67] = t30;
|
|
2216
|
+
} else t30 = $[67];
|
|
2297
2217
|
let t31;
|
|
2298
|
-
if ($[
|
|
2218
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2299
2219
|
t31 = /* @__PURE__ */ jsx("div", {
|
|
2300
2220
|
className: "text-xs text-muted-foreground",
|
|
2301
2221
|
children: "Active"
|
|
2302
2222
|
});
|
|
2303
|
-
$[
|
|
2304
|
-
} else t31 = $[
|
|
2223
|
+
$[68] = t31;
|
|
2224
|
+
} else t31 = $[68];
|
|
2305
2225
|
let t32;
|
|
2306
|
-
if ($[
|
|
2226
|
+
if ($[69] !== t30) {
|
|
2307
2227
|
t32 = /* @__PURE__ */ jsxs("div", { children: [t30, t31] });
|
|
2308
|
-
$[
|
|
2309
|
-
$[
|
|
2310
|
-
} else t32 = $[
|
|
2228
|
+
$[69] = t30;
|
|
2229
|
+
$[70] = t32;
|
|
2230
|
+
} else t32 = $[70];
|
|
2311
2231
|
let t33;
|
|
2312
|
-
if ($[
|
|
2232
|
+
if ($[71] !== selectedQueue.stats.completed) {
|
|
2313
2233
|
t33 = /* @__PURE__ */ jsx("div", {
|
|
2314
2234
|
className: "text-2xl font-bold text-green-500",
|
|
2315
2235
|
children: selectedQueue.stats.completed
|
|
2316
2236
|
});
|
|
2317
|
-
$[
|
|
2318
|
-
$[
|
|
2319
|
-
} else t33 = $[
|
|
2237
|
+
$[71] = selectedQueue.stats.completed;
|
|
2238
|
+
$[72] = t33;
|
|
2239
|
+
} else t33 = $[72];
|
|
2320
2240
|
let t34;
|
|
2321
|
-
if ($[
|
|
2241
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2322
2242
|
t34 = /* @__PURE__ */ jsx("div", {
|
|
2323
2243
|
className: "text-xs text-muted-foreground",
|
|
2324
2244
|
children: "Completed"
|
|
2325
2245
|
});
|
|
2326
|
-
$[
|
|
2327
|
-
} else t34 = $[
|
|
2246
|
+
$[73] = t34;
|
|
2247
|
+
} else t34 = $[73];
|
|
2328
2248
|
let t35;
|
|
2329
|
-
if ($[
|
|
2249
|
+
if ($[74] !== t33) {
|
|
2330
2250
|
t35 = /* @__PURE__ */ jsxs("div", { children: [t33, t34] });
|
|
2331
|
-
$[
|
|
2332
|
-
$[
|
|
2333
|
-
} else t35 = $[
|
|
2251
|
+
$[74] = t33;
|
|
2252
|
+
$[75] = t35;
|
|
2253
|
+
} else t35 = $[75];
|
|
2334
2254
|
let t36;
|
|
2335
|
-
if ($[
|
|
2255
|
+
if ($[76] !== selectedQueue.stats.failed) {
|
|
2336
2256
|
t36 = /* @__PURE__ */ jsx("div", {
|
|
2337
2257
|
className: "text-2xl font-bold text-destructive",
|
|
2338
2258
|
children: selectedQueue.stats.failed
|
|
2339
2259
|
});
|
|
2340
|
-
$[
|
|
2341
|
-
$[
|
|
2342
|
-
} else t36 = $[
|
|
2260
|
+
$[76] = selectedQueue.stats.failed;
|
|
2261
|
+
$[77] = t36;
|
|
2262
|
+
} else t36 = $[77];
|
|
2343
2263
|
let t37;
|
|
2344
|
-
if ($[
|
|
2264
|
+
if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2345
2265
|
t37 = /* @__PURE__ */ jsx("div", {
|
|
2346
2266
|
className: "text-xs text-muted-foreground",
|
|
2347
2267
|
children: "Failed"
|
|
2348
2268
|
});
|
|
2349
|
-
$[
|
|
2350
|
-
} else t37 = $[
|
|
2269
|
+
$[78] = t37;
|
|
2270
|
+
} else t37 = $[78];
|
|
2351
2271
|
let t38;
|
|
2352
|
-
if ($[
|
|
2272
|
+
if ($[79] !== t36) {
|
|
2353
2273
|
t38 = /* @__PURE__ */ jsxs("div", { children: [t36, t37] });
|
|
2354
|
-
$[
|
|
2355
|
-
$[
|
|
2356
|
-
} else t38 = $[
|
|
2274
|
+
$[79] = t36;
|
|
2275
|
+
$[80] = t38;
|
|
2276
|
+
} else t38 = $[80];
|
|
2357
2277
|
let t39;
|
|
2358
|
-
if ($[
|
|
2278
|
+
if ($[81] !== selectedQueue.stats.delayed) {
|
|
2359
2279
|
t39 = /* @__PURE__ */ jsx("div", {
|
|
2360
2280
|
className: "text-2xl font-bold text-purple-500",
|
|
2361
2281
|
children: selectedQueue.stats.delayed
|
|
2362
2282
|
});
|
|
2363
|
-
$[
|
|
2364
|
-
$[
|
|
2365
|
-
} else t39 = $[
|
|
2283
|
+
$[81] = selectedQueue.stats.delayed;
|
|
2284
|
+
$[82] = t39;
|
|
2285
|
+
} else t39 = $[82];
|
|
2366
2286
|
let t40;
|
|
2367
|
-
if ($[
|
|
2287
|
+
if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2368
2288
|
t40 = /* @__PURE__ */ jsx("div", {
|
|
2369
2289
|
className: "text-xs text-muted-foreground",
|
|
2370
2290
|
children: "Delayed"
|
|
2371
2291
|
});
|
|
2372
|
-
$[
|
|
2373
|
-
} else t40 = $[
|
|
2292
|
+
$[83] = t40;
|
|
2293
|
+
} else t40 = $[83];
|
|
2374
2294
|
let t41;
|
|
2375
|
-
if ($[
|
|
2295
|
+
if ($[84] !== t39) {
|
|
2376
2296
|
t41 = /* @__PURE__ */ jsxs("div", { children: [t39, t40] });
|
|
2377
|
-
$[
|
|
2378
|
-
$[
|
|
2379
|
-
} else t41 = $[
|
|
2297
|
+
$[84] = t39;
|
|
2298
|
+
$[85] = t41;
|
|
2299
|
+
} else t41 = $[85];
|
|
2380
2300
|
let t42;
|
|
2381
|
-
if ($[
|
|
2301
|
+
if ($[86] !== selectedQueue.stats.paused) {
|
|
2382
2302
|
t42 = /* @__PURE__ */ jsx("div", {
|
|
2383
2303
|
className: "text-2xl font-bold text-muted-foreground",
|
|
2384
2304
|
children: selectedQueue.stats.paused
|
|
2385
2305
|
});
|
|
2386
|
-
$[
|
|
2387
|
-
$[
|
|
2388
|
-
} else t42 = $[
|
|
2306
|
+
$[86] = selectedQueue.stats.paused;
|
|
2307
|
+
$[87] = t42;
|
|
2308
|
+
} else t42 = $[87];
|
|
2389
2309
|
let t43;
|
|
2390
|
-
if ($[
|
|
2310
|
+
if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2391
2311
|
t43 = /* @__PURE__ */ jsx("div", {
|
|
2392
2312
|
className: "text-xs text-muted-foreground",
|
|
2393
2313
|
children: "Paused"
|
|
2394
2314
|
});
|
|
2395
|
-
$[
|
|
2396
|
-
} else t43 = $[
|
|
2315
|
+
$[88] = t43;
|
|
2316
|
+
} else t43 = $[88];
|
|
2397
2317
|
let t44;
|
|
2398
|
-
if ($[
|
|
2318
|
+
if ($[89] !== t42) {
|
|
2399
2319
|
t44 = /* @__PURE__ */ jsxs("div", { children: [t42, t43] });
|
|
2400
|
-
$[
|
|
2401
|
-
$[
|
|
2402
|
-
} else t44 = $[
|
|
2320
|
+
$[89] = t42;
|
|
2321
|
+
$[90] = t44;
|
|
2322
|
+
} else t44 = $[90];
|
|
2403
2323
|
let t45;
|
|
2404
|
-
if ($[
|
|
2324
|
+
if ($[91] !== t29 || $[92] !== t32 || $[93] !== t35 || $[94] !== t38 || $[95] !== t41 || $[96] !== t44) {
|
|
2405
2325
|
t45 = /* @__PURE__ */ jsx("div", {
|
|
2406
2326
|
className: "p-3 border-b border-border",
|
|
2407
2327
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -2416,22 +2336,22 @@ const QueueDetail = memo(() => {
|
|
|
2416
2336
|
]
|
|
2417
2337
|
})
|
|
2418
2338
|
});
|
|
2419
|
-
$[
|
|
2420
|
-
$[
|
|
2421
|
-
$[
|
|
2422
|
-
$[
|
|
2423
|
-
$[
|
|
2424
|
-
$[
|
|
2425
|
-
$[
|
|
2426
|
-
} else t45 = $[
|
|
2339
|
+
$[91] = t29;
|
|
2340
|
+
$[92] = t32;
|
|
2341
|
+
$[93] = t35;
|
|
2342
|
+
$[94] = t38;
|
|
2343
|
+
$[95] = t41;
|
|
2344
|
+
$[96] = t44;
|
|
2345
|
+
$[97] = t45;
|
|
2346
|
+
} else t45 = $[97];
|
|
2427
2347
|
let t46;
|
|
2428
|
-
if ($[
|
|
2348
|
+
if ($[98] !== setSelectedStatus) {
|
|
2429
2349
|
t46 = (v) => setSelectedStatus(v);
|
|
2430
|
-
$[
|
|
2431
|
-
$[
|
|
2432
|
-
} else t46 = $[
|
|
2350
|
+
$[98] = setSelectedStatus;
|
|
2351
|
+
$[99] = t46;
|
|
2352
|
+
} else t46 = $[99];
|
|
2433
2353
|
let t47;
|
|
2434
|
-
if ($[
|
|
2354
|
+
if ($[100] !== selectedQueue.stats || $[101] !== selectedStatus) {
|
|
2435
2355
|
t47 = STATUS_TABS.map((tab) => /* @__PURE__ */ jsxs(TabsTrigger, {
|
|
2436
2356
|
value: tab.value,
|
|
2437
2357
|
className: cn("relative", selectedStatus === tab.value && "after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary"),
|
|
@@ -2440,42 +2360,42 @@ const QueueDetail = memo(() => {
|
|
|
2440
2360
|
children: selectedQueue.stats[tab.value]
|
|
2441
2361
|
})]
|
|
2442
2362
|
}, tab.value));
|
|
2443
|
-
$[
|
|
2444
|
-
$[
|
|
2445
|
-
$[
|
|
2446
|
-
} else t47 = $[
|
|
2363
|
+
$[100] = selectedQueue.stats;
|
|
2364
|
+
$[101] = selectedStatus;
|
|
2365
|
+
$[102] = t47;
|
|
2366
|
+
} else t47 = $[102];
|
|
2447
2367
|
let t48;
|
|
2448
|
-
if ($[
|
|
2368
|
+
if ($[103] !== t47) {
|
|
2449
2369
|
t48 = /* @__PURE__ */ jsx("div", {
|
|
2450
2370
|
className: "px-3 pt-2 border-b border-border",
|
|
2451
2371
|
children: /* @__PURE__ */ jsx(TabsList, { children: t47 })
|
|
2452
2372
|
});
|
|
2453
|
-
$[
|
|
2454
|
-
$[
|
|
2455
|
-
} else t48 = $[
|
|
2373
|
+
$[103] = t47;
|
|
2374
|
+
$[104] = t48;
|
|
2375
|
+
} else t48 = $[104];
|
|
2456
2376
|
let t49;
|
|
2457
|
-
if ($[
|
|
2377
|
+
if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2458
2378
|
t49 = /* @__PURE__ */ jsx("div", {
|
|
2459
2379
|
className: "flex-1 overflow-auto",
|
|
2460
2380
|
children: /* @__PURE__ */ jsx(JobsTable, {})
|
|
2461
2381
|
});
|
|
2462
|
-
$[
|
|
2463
|
-
} else t49 = $[
|
|
2382
|
+
$[105] = t49;
|
|
2383
|
+
} else t49 = $[105];
|
|
2464
2384
|
let t50;
|
|
2465
|
-
if ($[
|
|
2385
|
+
if ($[106] !== selectedStatus || $[107] !== t46 || $[108] !== t48) {
|
|
2466
2386
|
t50 = /* @__PURE__ */ jsxs(Tabs, {
|
|
2467
2387
|
value: selectedStatus,
|
|
2468
2388
|
onValueChange: t46,
|
|
2469
2389
|
className: "flex-1 flex flex-col",
|
|
2470
2390
|
children: [t48, t49]
|
|
2471
2391
|
});
|
|
2472
|
-
$[
|
|
2473
|
-
$[
|
|
2474
|
-
$[
|
|
2475
|
-
$[
|
|
2476
|
-
} else t50 = $[
|
|
2392
|
+
$[106] = selectedStatus;
|
|
2393
|
+
$[107] = t46;
|
|
2394
|
+
$[108] = t48;
|
|
2395
|
+
$[109] = t50;
|
|
2396
|
+
} else t50 = $[109];
|
|
2477
2397
|
let t51;
|
|
2478
|
-
if ($[
|
|
2398
|
+
if ($[110] !== t26 || $[111] !== t45 || $[112] !== t50) {
|
|
2479
2399
|
t51 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", {
|
|
2480
2400
|
className: "flex flex-col h-full",
|
|
2481
2401
|
children: [
|
|
@@ -2484,11 +2404,11 @@ const QueueDetail = memo(() => {
|
|
|
2484
2404
|
t50
|
|
2485
2405
|
]
|
|
2486
2406
|
}) });
|
|
2487
|
-
$[
|
|
2488
|
-
$[
|
|
2489
|
-
$[
|
|
2490
|
-
$[
|
|
2491
|
-
} else t51 = $[
|
|
2407
|
+
$[110] = t26;
|
|
2408
|
+
$[111] = t45;
|
|
2409
|
+
$[112] = t50;
|
|
2410
|
+
$[113] = t51;
|
|
2411
|
+
} else t51 = $[113];
|
|
2492
2412
|
return t51;
|
|
2493
2413
|
});
|
|
2494
2414
|
QueueDetail.displayName = "QueueDetail";
|
|
@@ -2505,50 +2425,46 @@ function _temp3$1(state_1) {
|
|
|
2505
2425
|
//#endregion
|
|
2506
2426
|
//#region src/components/queue-list.tsx
|
|
2507
2427
|
const QueueItem = memo((t0) => {
|
|
2508
|
-
const $ = c(
|
|
2509
|
-
if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
|
|
2510
|
-
for (let $i = 0; $i < 54; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2511
|
-
$[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
|
|
2512
|
-
}
|
|
2428
|
+
const $ = c(53);
|
|
2513
2429
|
const { queue, isSelected, onClick } = t0;
|
|
2514
2430
|
const totalJobs = queue.stats.waiting + queue.stats.active + queue.stats.delayed + queue.stats.prioritized;
|
|
2515
2431
|
const hasFailedJobs = queue.stats.failed > 0;
|
|
2516
2432
|
const t1 = isSelected ? "bg-muted-foreground/10" : "hover:bg-muted/70";
|
|
2517
2433
|
let t2;
|
|
2518
|
-
if ($[
|
|
2434
|
+
if ($[0] !== t1) {
|
|
2519
2435
|
t2 = cn("w-full text-left p-3 transition-colors border-b border-border", t1);
|
|
2520
|
-
$[
|
|
2521
|
-
$[
|
|
2522
|
-
} else t2 = $[
|
|
2436
|
+
$[0] = t1;
|
|
2437
|
+
$[1] = t2;
|
|
2438
|
+
} else t2 = $[1];
|
|
2523
2439
|
let t3;
|
|
2524
|
-
if ($[
|
|
2440
|
+
if ($[2] !== queue.isDLQ) {
|
|
2525
2441
|
t3 = queue.isDLQ ? /* @__PURE__ */ jsx(Skull, { className: "w-4 h-4 text-destructive" }) : /* @__PURE__ */ jsx(Layers, { className: "w-4 h-4 text-muted-foreground" });
|
|
2526
|
-
$[
|
|
2527
|
-
$[
|
|
2528
|
-
} else t3 = $[
|
|
2442
|
+
$[2] = queue.isDLQ;
|
|
2443
|
+
$[3] = t3;
|
|
2444
|
+
} else t3 = $[3];
|
|
2529
2445
|
let t4;
|
|
2530
|
-
if ($[
|
|
2446
|
+
if ($[4] !== queue.displayName) {
|
|
2531
2447
|
t4 = /* @__PURE__ */ jsx("span", {
|
|
2532
2448
|
className: "font-semibold text-sm truncate flex-1",
|
|
2533
2449
|
children: queue.displayName
|
|
2534
2450
|
});
|
|
2535
|
-
$[
|
|
2536
|
-
$[
|
|
2537
|
-
} else t4 = $[
|
|
2451
|
+
$[4] = queue.displayName;
|
|
2452
|
+
$[5] = t4;
|
|
2453
|
+
} else t4 = $[5];
|
|
2538
2454
|
let t5;
|
|
2539
|
-
if ($[
|
|
2455
|
+
if ($[6] !== queue.isPaused) {
|
|
2540
2456
|
t5 = queue.isPaused && /* @__PURE__ */ jsx(Pause, { className: "w-3 h-3 text-yellow-500" });
|
|
2541
|
-
$[
|
|
2542
|
-
$[
|
|
2543
|
-
} else t5 = $[
|
|
2457
|
+
$[6] = queue.isPaused;
|
|
2458
|
+
$[7] = t5;
|
|
2459
|
+
} else t5 = $[7];
|
|
2544
2460
|
let t6;
|
|
2545
|
-
if ($[
|
|
2461
|
+
if ($[8] !== hasFailedJobs) {
|
|
2546
2462
|
t6 = hasFailedJobs && /* @__PURE__ */ jsx(AlertTriangle, { className: "w-3 h-3 text-destructive" });
|
|
2547
|
-
$[
|
|
2548
|
-
$[
|
|
2549
|
-
} else t6 = $[
|
|
2463
|
+
$[8] = hasFailedJobs;
|
|
2464
|
+
$[9] = t6;
|
|
2465
|
+
} else t6 = $[9];
|
|
2550
2466
|
let t7;
|
|
2551
|
-
if ($[
|
|
2467
|
+
if ($[10] !== t3 || $[11] !== t4 || $[12] !== t5 || $[13] !== t6) {
|
|
2552
2468
|
t7 = /* @__PURE__ */ jsxs("div", {
|
|
2553
2469
|
className: "flex items-center gap-2 mb-1",
|
|
2554
2470
|
children: [
|
|
@@ -2558,29 +2474,29 @@ const QueueItem = memo((t0) => {
|
|
|
2558
2474
|
t6
|
|
2559
2475
|
]
|
|
2560
2476
|
});
|
|
2561
|
-
$[
|
|
2562
|
-
$[
|
|
2563
|
-
$[
|
|
2564
|
-
$[
|
|
2565
|
-
$[
|
|
2566
|
-
} else t7 = $[
|
|
2477
|
+
$[10] = t3;
|
|
2478
|
+
$[11] = t4;
|
|
2479
|
+
$[12] = t5;
|
|
2480
|
+
$[13] = t6;
|
|
2481
|
+
$[14] = t7;
|
|
2482
|
+
} else t7 = $[14];
|
|
2567
2483
|
let t8;
|
|
2568
|
-
if ($[
|
|
2484
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2569
2485
|
t8 = /* @__PURE__ */ jsx("span", {
|
|
2570
2486
|
className: "text-muted-foreground",
|
|
2571
2487
|
children: "Wait"
|
|
2572
2488
|
});
|
|
2573
|
-
$[
|
|
2574
|
-
} else t8 = $[
|
|
2489
|
+
$[15] = t8;
|
|
2490
|
+
} else t8 = $[15];
|
|
2575
2491
|
const t9 = queue.stats.waiting > 0 && "text-blue-500";
|
|
2576
2492
|
let t10;
|
|
2577
|
-
if ($[
|
|
2493
|
+
if ($[16] !== t9) {
|
|
2578
2494
|
t10 = cn("font-mono", t9);
|
|
2579
|
-
$[
|
|
2580
|
-
$[
|
|
2581
|
-
} else t10 = $[
|
|
2495
|
+
$[16] = t9;
|
|
2496
|
+
$[17] = t10;
|
|
2497
|
+
} else t10 = $[17];
|
|
2582
2498
|
let t11;
|
|
2583
|
-
if ($[
|
|
2499
|
+
if ($[18] !== queue.stats.waiting || $[19] !== t10) {
|
|
2584
2500
|
t11 = /* @__PURE__ */ jsxs("div", {
|
|
2585
2501
|
className: "flex flex-col",
|
|
2586
2502
|
children: [t8, /* @__PURE__ */ jsx("span", {
|
|
@@ -2588,27 +2504,27 @@ const QueueItem = memo((t0) => {
|
|
|
2588
2504
|
children: queue.stats.waiting
|
|
2589
2505
|
})]
|
|
2590
2506
|
});
|
|
2591
|
-
$[
|
|
2592
|
-
$[
|
|
2593
|
-
$[
|
|
2594
|
-
} else t11 = $[
|
|
2507
|
+
$[18] = queue.stats.waiting;
|
|
2508
|
+
$[19] = t10;
|
|
2509
|
+
$[20] = t11;
|
|
2510
|
+
} else t11 = $[20];
|
|
2595
2511
|
let t12;
|
|
2596
|
-
if ($[
|
|
2512
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2597
2513
|
t12 = /* @__PURE__ */ jsx("span", {
|
|
2598
2514
|
className: "text-muted-foreground",
|
|
2599
2515
|
children: "Active"
|
|
2600
2516
|
});
|
|
2601
|
-
$[
|
|
2602
|
-
} else t12 = $[
|
|
2517
|
+
$[21] = t12;
|
|
2518
|
+
} else t12 = $[21];
|
|
2603
2519
|
const t13 = queue.stats.active > 0 && "text-yellow-500";
|
|
2604
2520
|
let t14;
|
|
2605
|
-
if ($[
|
|
2521
|
+
if ($[22] !== t13) {
|
|
2606
2522
|
t14 = cn("font-mono", t13);
|
|
2607
|
-
$[
|
|
2608
|
-
$[
|
|
2609
|
-
} else t14 = $[
|
|
2523
|
+
$[22] = t13;
|
|
2524
|
+
$[23] = t14;
|
|
2525
|
+
} else t14 = $[23];
|
|
2610
2526
|
let t15;
|
|
2611
|
-
if ($[
|
|
2527
|
+
if ($[24] !== queue.stats.active || $[25] !== t14) {
|
|
2612
2528
|
t15 = /* @__PURE__ */ jsxs("div", {
|
|
2613
2529
|
className: "flex flex-col",
|
|
2614
2530
|
children: [t12, /* @__PURE__ */ jsx("span", {
|
|
@@ -2616,27 +2532,27 @@ const QueueItem = memo((t0) => {
|
|
|
2616
2532
|
children: queue.stats.active
|
|
2617
2533
|
})]
|
|
2618
2534
|
});
|
|
2619
|
-
$[
|
|
2620
|
-
$[
|
|
2621
|
-
$[
|
|
2622
|
-
} else t15 = $[
|
|
2535
|
+
$[24] = queue.stats.active;
|
|
2536
|
+
$[25] = t14;
|
|
2537
|
+
$[26] = t15;
|
|
2538
|
+
} else t15 = $[26];
|
|
2623
2539
|
let t16;
|
|
2624
|
-
if ($[
|
|
2540
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2625
2541
|
t16 = /* @__PURE__ */ jsx("span", {
|
|
2626
2542
|
className: "text-muted-foreground",
|
|
2627
2543
|
children: "Done"
|
|
2628
2544
|
});
|
|
2629
|
-
$[
|
|
2630
|
-
} else t16 = $[
|
|
2545
|
+
$[27] = t16;
|
|
2546
|
+
} else t16 = $[27];
|
|
2631
2547
|
const t17 = queue.stats.completed > 0 && "text-green-500";
|
|
2632
2548
|
let t18;
|
|
2633
|
-
if ($[
|
|
2549
|
+
if ($[28] !== t17) {
|
|
2634
2550
|
t18 = cn("font-mono", t17);
|
|
2635
|
-
$[
|
|
2636
|
-
$[
|
|
2637
|
-
} else t18 = $[
|
|
2551
|
+
$[28] = t17;
|
|
2552
|
+
$[29] = t18;
|
|
2553
|
+
} else t18 = $[29];
|
|
2638
2554
|
let t19;
|
|
2639
|
-
if ($[
|
|
2555
|
+
if ($[30] !== queue.stats.completed || $[31] !== t18) {
|
|
2640
2556
|
t19 = /* @__PURE__ */ jsxs("div", {
|
|
2641
2557
|
className: "flex flex-col",
|
|
2642
2558
|
children: [t16, /* @__PURE__ */ jsx("span", {
|
|
@@ -2644,27 +2560,27 @@ const QueueItem = memo((t0) => {
|
|
|
2644
2560
|
children: queue.stats.completed
|
|
2645
2561
|
})]
|
|
2646
2562
|
});
|
|
2647
|
-
$[
|
|
2648
|
-
$[
|
|
2649
|
-
$[
|
|
2650
|
-
} else t19 = $[
|
|
2563
|
+
$[30] = queue.stats.completed;
|
|
2564
|
+
$[31] = t18;
|
|
2565
|
+
$[32] = t19;
|
|
2566
|
+
} else t19 = $[32];
|
|
2651
2567
|
let t20;
|
|
2652
|
-
if ($[
|
|
2568
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2653
2569
|
t20 = /* @__PURE__ */ jsx("span", {
|
|
2654
2570
|
className: "text-muted-foreground",
|
|
2655
2571
|
children: "Failed"
|
|
2656
2572
|
});
|
|
2657
|
-
$[
|
|
2658
|
-
} else t20 = $[
|
|
2573
|
+
$[33] = t20;
|
|
2574
|
+
} else t20 = $[33];
|
|
2659
2575
|
const t21 = queue.stats.failed > 0 && "text-destructive";
|
|
2660
2576
|
let t22;
|
|
2661
|
-
if ($[
|
|
2577
|
+
if ($[34] !== t21) {
|
|
2662
2578
|
t22 = cn("font-mono", t21);
|
|
2663
|
-
$[
|
|
2664
|
-
$[
|
|
2665
|
-
} else t22 = $[
|
|
2579
|
+
$[34] = t21;
|
|
2580
|
+
$[35] = t22;
|
|
2581
|
+
} else t22 = $[35];
|
|
2666
2582
|
let t23;
|
|
2667
|
-
if ($[
|
|
2583
|
+
if ($[36] !== queue.stats.failed || $[37] !== t22) {
|
|
2668
2584
|
t23 = /* @__PURE__ */ jsxs("div", {
|
|
2669
2585
|
className: "flex flex-col",
|
|
2670
2586
|
children: [t20, /* @__PURE__ */ jsx("span", {
|
|
@@ -2672,12 +2588,12 @@ const QueueItem = memo((t0) => {
|
|
|
2672
2588
|
children: queue.stats.failed
|
|
2673
2589
|
})]
|
|
2674
2590
|
});
|
|
2675
|
-
$[
|
|
2676
|
-
$[
|
|
2677
|
-
$[
|
|
2678
|
-
} else t23 = $[
|
|
2591
|
+
$[36] = queue.stats.failed;
|
|
2592
|
+
$[37] = t22;
|
|
2593
|
+
$[38] = t23;
|
|
2594
|
+
} else t23 = $[38];
|
|
2679
2595
|
let t24;
|
|
2680
|
-
if ($[
|
|
2596
|
+
if ($[39] !== t11 || $[40] !== t15 || $[41] !== t19 || $[42] !== t23) {
|
|
2681
2597
|
t24 = /* @__PURE__ */ jsxs("div", {
|
|
2682
2598
|
className: "grid grid-cols-4 gap-1 text-xs",
|
|
2683
2599
|
children: [
|
|
@@ -2687,14 +2603,14 @@ const QueueItem = memo((t0) => {
|
|
|
2687
2603
|
t23
|
|
2688
2604
|
]
|
|
2689
2605
|
});
|
|
2690
|
-
$[
|
|
2691
|
-
$[
|
|
2692
|
-
$[
|
|
2693
|
-
$[
|
|
2694
|
-
$[
|
|
2695
|
-
} else t24 = $[
|
|
2606
|
+
$[39] = t11;
|
|
2607
|
+
$[40] = t15;
|
|
2608
|
+
$[41] = t19;
|
|
2609
|
+
$[42] = t23;
|
|
2610
|
+
$[43] = t24;
|
|
2611
|
+
} else t24 = $[43];
|
|
2696
2612
|
let t25;
|
|
2697
|
-
if ($[
|
|
2613
|
+
if ($[44] !== queue.stats.delayed || $[45] !== totalJobs) {
|
|
2698
2614
|
t25 = (queue.stats.delayed > 0 || totalJobs > 0) && /* @__PURE__ */ jsxs("div", {
|
|
2699
2615
|
className: "flex gap-2 mt-1 text-xs text-muted-foreground",
|
|
2700
2616
|
children: [queue.stats.delayed > 0 && /* @__PURE__ */ jsxs("span", { children: [queue.stats.delayed, " delayed"] }), totalJobs > 0 && /* @__PURE__ */ jsxs("span", {
|
|
@@ -2702,12 +2618,12 @@ const QueueItem = memo((t0) => {
|
|
|
2702
2618
|
children: [totalJobs, " pending"]
|
|
2703
2619
|
})]
|
|
2704
2620
|
});
|
|
2705
|
-
$[
|
|
2706
|
-
$[
|
|
2707
|
-
$[
|
|
2708
|
-
} else t25 = $[
|
|
2621
|
+
$[44] = queue.stats.delayed;
|
|
2622
|
+
$[45] = totalJobs;
|
|
2623
|
+
$[46] = t25;
|
|
2624
|
+
} else t25 = $[46];
|
|
2709
2625
|
let t26;
|
|
2710
|
-
if ($[
|
|
2626
|
+
if ($[47] !== onClick || $[48] !== t2 || $[49] !== t24 || $[50] !== t25 || $[51] !== t7) {
|
|
2711
2627
|
t26 = /* @__PURE__ */ jsxs("button", {
|
|
2712
2628
|
type: "button",
|
|
2713
2629
|
onClick,
|
|
@@ -2718,22 +2634,18 @@ const QueueItem = memo((t0) => {
|
|
|
2718
2634
|
t25
|
|
2719
2635
|
]
|
|
2720
2636
|
});
|
|
2721
|
-
$[
|
|
2722
|
-
$[
|
|
2723
|
-
$[
|
|
2724
|
-
$[
|
|
2725
|
-
$[
|
|
2726
|
-
$[
|
|
2727
|
-
} else t26 = $[
|
|
2637
|
+
$[47] = onClick;
|
|
2638
|
+
$[48] = t2;
|
|
2639
|
+
$[49] = t24;
|
|
2640
|
+
$[50] = t25;
|
|
2641
|
+
$[51] = t7;
|
|
2642
|
+
$[52] = t26;
|
|
2643
|
+
} else t26 = $[52];
|
|
2728
2644
|
return t26;
|
|
2729
2645
|
});
|
|
2730
2646
|
QueueItem.displayName = "QueueItem";
|
|
2731
2647
|
const QueueList = memo(() => {
|
|
2732
|
-
const $ = c(
|
|
2733
|
-
if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
|
|
2734
|
-
for (let $i = 0; $i < 38; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2735
|
-
$[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
|
|
2736
|
-
}
|
|
2648
|
+
const $ = c(37);
|
|
2737
2649
|
const queues = useBullMQStore(_temp$1);
|
|
2738
2650
|
const selectedQueue = useBullMQStore(_temp2$1);
|
|
2739
2651
|
const setSelectedQueue = useBullMQStore(_temp3);
|
|
@@ -2746,38 +2658,38 @@ const QueueList = memo(() => {
|
|
|
2746
2658
|
break bb0;
|
|
2747
2659
|
}
|
|
2748
2660
|
let t1$1;
|
|
2749
|
-
if ($[
|
|
2661
|
+
if ($[0] !== queues || $[1] !== searchQuery) {
|
|
2750
2662
|
const query = searchQuery.toLowerCase();
|
|
2751
2663
|
t1$1 = queues.filter((q) => q.name.toLowerCase().includes(query) || q.displayName.toLowerCase().includes(query));
|
|
2752
|
-
$[
|
|
2753
|
-
$[
|
|
2754
|
-
$[
|
|
2755
|
-
} else t1$1 = $[
|
|
2664
|
+
$[0] = queues;
|
|
2665
|
+
$[1] = searchQuery;
|
|
2666
|
+
$[2] = t1$1;
|
|
2667
|
+
} else t1$1 = $[2];
|
|
2756
2668
|
t0 = t1$1;
|
|
2757
2669
|
}
|
|
2758
2670
|
const filteredQueues = t0;
|
|
2759
2671
|
let t1;
|
|
2760
|
-
if ($[
|
|
2672
|
+
if ($[3] !== filteredQueues) {
|
|
2761
2673
|
t1 = filteredQueues.filter(_temp6);
|
|
2762
|
-
$[
|
|
2763
|
-
$[
|
|
2764
|
-
} else t1 = $[
|
|
2674
|
+
$[3] = filteredQueues;
|
|
2675
|
+
$[4] = t1;
|
|
2676
|
+
} else t1 = $[4];
|
|
2765
2677
|
const regularQueues = t1;
|
|
2766
2678
|
let t2;
|
|
2767
|
-
if ($[
|
|
2679
|
+
if ($[5] !== filteredQueues) {
|
|
2768
2680
|
t2 = filteredQueues.filter(_temp7);
|
|
2769
|
-
$[
|
|
2770
|
-
$[
|
|
2771
|
-
} else t2 = $[
|
|
2681
|
+
$[5] = filteredQueues;
|
|
2682
|
+
$[6] = t2;
|
|
2683
|
+
} else t2 = $[6];
|
|
2772
2684
|
const dlqQueues = t2;
|
|
2773
2685
|
let t3;
|
|
2774
|
-
if ($[
|
|
2686
|
+
if ($[7] !== setSearchQuery) {
|
|
2775
2687
|
t3 = (e) => setSearchQuery(e.target.value);
|
|
2776
|
-
$[
|
|
2777
|
-
$[
|
|
2778
|
-
} else t3 = $[
|
|
2688
|
+
$[7] = setSearchQuery;
|
|
2689
|
+
$[8] = t3;
|
|
2690
|
+
} else t3 = $[8];
|
|
2779
2691
|
let t4;
|
|
2780
|
-
if ($[
|
|
2692
|
+
if ($[9] !== searchQuery || $[10] !== t3) {
|
|
2781
2693
|
t4 = /* @__PURE__ */ jsx(Input, {
|
|
2782
2694
|
variant: "shade",
|
|
2783
2695
|
value: searchQuery,
|
|
@@ -2785,27 +2697,27 @@ const QueueList = memo(() => {
|
|
|
2785
2697
|
className: "px-9! font-medium text-sm",
|
|
2786
2698
|
placeholder: "Search queues..."
|
|
2787
2699
|
});
|
|
2788
|
-
$[
|
|
2789
|
-
$[
|
|
2790
|
-
$[
|
|
2791
|
-
} else t4 = $[
|
|
2700
|
+
$[9] = searchQuery;
|
|
2701
|
+
$[10] = t3;
|
|
2702
|
+
$[11] = t4;
|
|
2703
|
+
} else t4 = $[11];
|
|
2792
2704
|
let t5;
|
|
2793
|
-
if ($[
|
|
2705
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2794
2706
|
t5 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
|
|
2795
|
-
$[
|
|
2796
|
-
} else t5 = $[
|
|
2707
|
+
$[12] = t5;
|
|
2708
|
+
} else t5 = $[12];
|
|
2797
2709
|
let t6;
|
|
2798
|
-
if ($[
|
|
2710
|
+
if ($[13] !== searchQuery || $[14] !== setSearchQuery) {
|
|
2799
2711
|
t6 = searchQuery && /* @__PURE__ */ jsx(X, {
|
|
2800
2712
|
className: "cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground",
|
|
2801
2713
|
onClick: () => setSearchQuery("")
|
|
2802
2714
|
});
|
|
2803
|
-
$[
|
|
2804
|
-
$[
|
|
2805
|
-
$[
|
|
2806
|
-
} else t6 = $[
|
|
2715
|
+
$[13] = searchQuery;
|
|
2716
|
+
$[14] = setSearchQuery;
|
|
2717
|
+
$[15] = t6;
|
|
2718
|
+
} else t6 = $[15];
|
|
2807
2719
|
let t7;
|
|
2808
|
-
if ($[
|
|
2720
|
+
if ($[16] !== t4 || $[17] !== t6) {
|
|
2809
2721
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2810
2722
|
className: "p-2 border-b border-border",
|
|
2811
2723
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -2817,12 +2729,12 @@ const QueueList = memo(() => {
|
|
|
2817
2729
|
]
|
|
2818
2730
|
})
|
|
2819
2731
|
});
|
|
2820
|
-
$[
|
|
2821
|
-
$[
|
|
2822
|
-
$[
|
|
2823
|
-
} else t7 = $[
|
|
2732
|
+
$[16] = t4;
|
|
2733
|
+
$[17] = t6;
|
|
2734
|
+
$[18] = t7;
|
|
2735
|
+
} else t7 = $[18];
|
|
2824
2736
|
let t8;
|
|
2825
|
-
if ($[
|
|
2737
|
+
if ($[19] !== regularQueues || $[20] !== selectedQueue?.name || $[21] !== setSelectedQueue) {
|
|
2826
2738
|
t8 = regularQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
2827
2739
|
className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-muted/30",
|
|
2828
2740
|
children: [
|
|
@@ -2835,13 +2747,13 @@ const QueueList = memo(() => {
|
|
|
2835
2747
|
isSelected: selectedQueue?.name === queue.name,
|
|
2836
2748
|
onClick: () => setSelectedQueue(queue)
|
|
2837
2749
|
}, queue.name))] });
|
|
2838
|
-
$[
|
|
2839
|
-
$[
|
|
2840
|
-
$[
|
|
2841
|
-
$[
|
|
2842
|
-
} else t8 = $[
|
|
2750
|
+
$[19] = regularQueues;
|
|
2751
|
+
$[20] = selectedQueue?.name;
|
|
2752
|
+
$[21] = setSelectedQueue;
|
|
2753
|
+
$[22] = t8;
|
|
2754
|
+
} else t8 = $[22];
|
|
2843
2755
|
let t9;
|
|
2844
|
-
if ($[
|
|
2756
|
+
if ($[23] !== dlqQueues || $[24] !== selectedQueue?.name || $[25] !== setSelectedQueue) {
|
|
2845
2757
|
t9 = dlqQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
2846
2758
|
className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-destructive/10",
|
|
2847
2759
|
children: [
|
|
@@ -2854,23 +2766,23 @@ const QueueList = memo(() => {
|
|
|
2854
2766
|
isSelected: selectedQueue?.name === queue_0.name,
|
|
2855
2767
|
onClick: () => setSelectedQueue(queue_0)
|
|
2856
2768
|
}, queue_0.name))] });
|
|
2857
|
-
$[
|
|
2858
|
-
$[
|
|
2859
|
-
$[
|
|
2860
|
-
$[
|
|
2861
|
-
} else t9 = $[
|
|
2769
|
+
$[23] = dlqQueues;
|
|
2770
|
+
$[24] = selectedQueue?.name;
|
|
2771
|
+
$[25] = setSelectedQueue;
|
|
2772
|
+
$[26] = t9;
|
|
2773
|
+
} else t9 = $[26];
|
|
2862
2774
|
let t10;
|
|
2863
|
-
if ($[
|
|
2775
|
+
if ($[27] !== filteredQueues.length || $[28] !== searchQuery) {
|
|
2864
2776
|
t10 = filteredQueues.length === 0 && /* @__PURE__ */ jsx("div", {
|
|
2865
2777
|
className: "p-4 text-center text-muted-foreground text-sm",
|
|
2866
2778
|
children: searchQuery ? "No queues match your search" : "No queues found"
|
|
2867
2779
|
});
|
|
2868
|
-
$[
|
|
2869
|
-
$[
|
|
2870
|
-
$[
|
|
2871
|
-
} else t10 = $[
|
|
2780
|
+
$[27] = filteredQueues.length;
|
|
2781
|
+
$[28] = searchQuery;
|
|
2782
|
+
$[29] = t10;
|
|
2783
|
+
} else t10 = $[29];
|
|
2872
2784
|
let t11;
|
|
2873
|
-
if ($[
|
|
2785
|
+
if ($[30] !== t10 || $[31] !== t8 || $[32] !== t9) {
|
|
2874
2786
|
t11 = /* @__PURE__ */ jsxs("div", {
|
|
2875
2787
|
className: "flex-1 overflow-auto",
|
|
2876
2788
|
children: [
|
|
@@ -2879,21 +2791,21 @@ const QueueList = memo(() => {
|
|
|
2879
2791
|
t10
|
|
2880
2792
|
]
|
|
2881
2793
|
});
|
|
2882
|
-
$[
|
|
2883
|
-
$[
|
|
2884
|
-
$[
|
|
2885
|
-
$[
|
|
2886
|
-
} else t11 = $[
|
|
2794
|
+
$[30] = t10;
|
|
2795
|
+
$[31] = t8;
|
|
2796
|
+
$[32] = t9;
|
|
2797
|
+
$[33] = t11;
|
|
2798
|
+
} else t11 = $[33];
|
|
2887
2799
|
let t12;
|
|
2888
|
-
if ($[
|
|
2800
|
+
if ($[34] !== t11 || $[35] !== t7) {
|
|
2889
2801
|
t12 = /* @__PURE__ */ jsxs("div", {
|
|
2890
2802
|
className: "flex flex-col h-full",
|
|
2891
2803
|
children: [t7, t11]
|
|
2892
2804
|
});
|
|
2893
|
-
$[
|
|
2894
|
-
$[
|
|
2895
|
-
$[
|
|
2896
|
-
} else t12 = $[
|
|
2805
|
+
$[34] = t11;
|
|
2806
|
+
$[35] = t7;
|
|
2807
|
+
$[36] = t12;
|
|
2808
|
+
} else t12 = $[36];
|
|
2897
2809
|
return t12;
|
|
2898
2810
|
});
|
|
2899
2811
|
QueueList.displayName = "QueueList";
|
|
@@ -2922,17 +2834,13 @@ function _temp7(q_1) {
|
|
|
2922
2834
|
//#endregion
|
|
2923
2835
|
//#region src/components/queues-page.tsx
|
|
2924
2836
|
const QueuesPageContent = memo(() => {
|
|
2925
|
-
const $ = c(
|
|
2926
|
-
if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
|
|
2927
|
-
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2928
|
-
$[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
|
|
2929
|
-
}
|
|
2837
|
+
const $ = c(11);
|
|
2930
2838
|
const selectedQueue = useBullMQStore(_temp);
|
|
2931
2839
|
const updateSelectedQueueStats = useBullMQStore(_temp2);
|
|
2932
2840
|
const { queues } = useQueues();
|
|
2933
2841
|
let t0;
|
|
2934
2842
|
let t1;
|
|
2935
|
-
if ($[
|
|
2843
|
+
if ($[0] !== queues || $[1] !== selectedQueue || $[2] !== updateSelectedQueueStats) {
|
|
2936
2844
|
t0 = () => {
|
|
2937
2845
|
if (selectedQueue) {
|
|
2938
2846
|
const updatedQueue = queues.find((q) => q.name === selectedQueue.name);
|
|
@@ -2944,40 +2852,40 @@ const QueuesPageContent = memo(() => {
|
|
|
2944
2852
|
selectedQueue,
|
|
2945
2853
|
updateSelectedQueueStats
|
|
2946
2854
|
];
|
|
2947
|
-
$[
|
|
2948
|
-
$[
|
|
2949
|
-
$[
|
|
2950
|
-
$[
|
|
2951
|
-
$[
|
|
2855
|
+
$[0] = queues;
|
|
2856
|
+
$[1] = selectedQueue;
|
|
2857
|
+
$[2] = updateSelectedQueueStats;
|
|
2858
|
+
$[3] = t0;
|
|
2859
|
+
$[4] = t1;
|
|
2952
2860
|
} else {
|
|
2953
|
-
t0 = $[
|
|
2954
|
-
t1 = $[
|
|
2861
|
+
t0 = $[3];
|
|
2862
|
+
t1 = $[4];
|
|
2955
2863
|
}
|
|
2956
2864
|
useEffect(t0, t1);
|
|
2957
2865
|
let t2;
|
|
2958
|
-
if ($[
|
|
2866
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2959
2867
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
2960
2868
|
className: "border-r border-border overflow-hidden",
|
|
2961
2869
|
children: /* @__PURE__ */ jsx(QueueList, {})
|
|
2962
2870
|
});
|
|
2963
|
-
$[
|
|
2964
|
-
} else t2 = $[
|
|
2871
|
+
$[5] = t2;
|
|
2872
|
+
} else t2 = $[5];
|
|
2965
2873
|
let t3;
|
|
2966
|
-
if ($[
|
|
2874
|
+
if ($[6] !== selectedQueue?.isDLQ) {
|
|
2967
2875
|
t3 = /* @__PURE__ */ jsx("div", {
|
|
2968
2876
|
className: "overflow-hidden",
|
|
2969
2877
|
children: selectedQueue?.isDLQ ? /* @__PURE__ */ jsx(DLQPanel, {}) : /* @__PURE__ */ jsx(QueueDetail, {})
|
|
2970
2878
|
});
|
|
2971
|
-
$[
|
|
2972
|
-
$[
|
|
2973
|
-
} else t3 = $[
|
|
2879
|
+
$[6] = selectedQueue?.isDLQ;
|
|
2880
|
+
$[7] = t3;
|
|
2881
|
+
} else t3 = $[7];
|
|
2974
2882
|
let t4;
|
|
2975
|
-
if ($[
|
|
2883
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2976
2884
|
t4 = /* @__PURE__ */ jsx(JobDetail, {});
|
|
2977
|
-
$[
|
|
2978
|
-
} else t4 = $[
|
|
2885
|
+
$[8] = t4;
|
|
2886
|
+
} else t4 = $[8];
|
|
2979
2887
|
let t5;
|
|
2980
|
-
if ($[
|
|
2888
|
+
if ($[9] !== t3) {
|
|
2981
2889
|
t5 = /* @__PURE__ */ jsxs("div", {
|
|
2982
2890
|
className: "grid grid-cols-[300px_1fr] h-full overflow-hidden",
|
|
2983
2891
|
children: [
|
|
@@ -2986,23 +2894,19 @@ const QueuesPageContent = memo(() => {
|
|
|
2986
2894
|
t4
|
|
2987
2895
|
]
|
|
2988
2896
|
});
|
|
2989
|
-
$[
|
|
2990
|
-
$[
|
|
2991
|
-
} else t5 = $[
|
|
2897
|
+
$[9] = t3;
|
|
2898
|
+
$[10] = t5;
|
|
2899
|
+
} else t5 = $[10];
|
|
2992
2900
|
return t5;
|
|
2993
2901
|
});
|
|
2994
2902
|
QueuesPageContent.displayName = "QueuesPageContent";
|
|
2995
2903
|
const QueuesPage = memo(() => {
|
|
2996
|
-
const $ = c(
|
|
2997
|
-
if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
|
|
2998
|
-
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2999
|
-
$[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
|
|
3000
|
-
}
|
|
2904
|
+
const $ = c(1);
|
|
3001
2905
|
let t0;
|
|
3002
|
-
if ($[
|
|
2906
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3003
2907
|
t0 = /* @__PURE__ */ jsx(QueryProvider, { children: /* @__PURE__ */ jsx(QueuesPageContent, {}) });
|
|
3004
|
-
$[
|
|
3005
|
-
} else t0 = $[
|
|
2908
|
+
$[0] = t0;
|
|
2909
|
+
} else t0 = $[0];
|
|
3006
2910
|
return t0;
|
|
3007
2911
|
});
|
|
3008
2912
|
QueuesPage.displayName = "QueuesPage";
|