@motiadev/plugin-bullmq 0.14.0-beta.165-210612 → 0.14.0-beta.165-256670
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/LICENSE +1 -1
- package/dist/index.css +8 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +1032 -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] !== "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3") {
|
|
1600
|
-
for (let $i = 0; $i < 50; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1601
|
-
$[0] = "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3";
|
|
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,49 +1658,50 @@ 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, {
|
|
1775
1703
|
align: "end",
|
|
1704
|
+
className: "bg-background text-foreground",
|
|
1776
1705
|
children: [
|
|
1777
1706
|
t13,
|
|
1778
1707
|
t14,
|
|
@@ -1780,13 +1709,13 @@ const JobRow = memo((t0) => {
|
|
|
1780
1709
|
]
|
|
1781
1710
|
})] })
|
|
1782
1711
|
});
|
|
1783
|
-
$[
|
|
1784
|
-
$[
|
|
1785
|
-
$[
|
|
1786
|
-
$[
|
|
1787
|
-
} else t17 = $[
|
|
1712
|
+
$[36] = t13;
|
|
1713
|
+
$[37] = t14;
|
|
1714
|
+
$[38] = t16;
|
|
1715
|
+
$[39] = t17;
|
|
1716
|
+
} else t17 = $[39];
|
|
1788
1717
|
let t18;
|
|
1789
|
-
if ($[
|
|
1718
|
+
if ($[40] !== onSelect || $[41] !== t10 || $[42] !== t11 || $[43] !== t17 || $[44] !== t5 || $[45] !== t6 || $[46] !== t7 || $[47] !== t9) {
|
|
1790
1719
|
t18 = /* @__PURE__ */ jsxs(TableRow, {
|
|
1791
1720
|
onClick: onSelect,
|
|
1792
1721
|
className: t5,
|
|
@@ -1799,83 +1728,79 @@ const JobRow = memo((t0) => {
|
|
|
1799
1728
|
t17
|
|
1800
1729
|
]
|
|
1801
1730
|
});
|
|
1802
|
-
$[
|
|
1803
|
-
$[
|
|
1804
|
-
$[
|
|
1805
|
-
$[
|
|
1806
|
-
$[
|
|
1807
|
-
$[
|
|
1808
|
-
$[
|
|
1809
|
-
$[
|
|
1810
|
-
$[
|
|
1811
|
-
} 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];
|
|
1812
1741
|
return t18;
|
|
1813
1742
|
});
|
|
1814
1743
|
JobRow.displayName = "JobRow";
|
|
1815
1744
|
const JobsTable = memo(() => {
|
|
1816
|
-
const $ = c(
|
|
1817
|
-
if ($[0] !== "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3") {
|
|
1818
|
-
for (let $i = 0; $i < 21; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1819
|
-
$[0] = "549ecf5348d30376d9628403356a8a8f33ce7736fa4d1a68584efe9bad9296a3";
|
|
1820
|
-
}
|
|
1745
|
+
const $ = c(20);
|
|
1821
1746
|
const { data: t0, isLoading } = useJobsQuery();
|
|
1822
1747
|
let t1;
|
|
1823
|
-
if ($[
|
|
1748
|
+
if ($[0] !== t0) {
|
|
1824
1749
|
t1 = t0 === void 0 ? [] : t0;
|
|
1825
|
-
$[
|
|
1826
|
-
$[
|
|
1827
|
-
} else t1 = $[
|
|
1750
|
+
$[0] = t0;
|
|
1751
|
+
$[1] = t1;
|
|
1752
|
+
} else t1 = $[1];
|
|
1828
1753
|
const jobs = t1;
|
|
1829
1754
|
const selectedQueue = useBullMQStore(_temp2$3);
|
|
1830
1755
|
const selectedJob = useBullMQStore(_temp3$2);
|
|
1831
1756
|
const setSelectedJob = useBullMQStore(_temp4$1);
|
|
1832
1757
|
const setJobDetailOpen = useBullMQStore(_temp5$1);
|
|
1833
1758
|
let t2;
|
|
1834
|
-
if ($[
|
|
1759
|
+
if ($[2] !== setJobDetailOpen || $[3] !== setSelectedJob) {
|
|
1835
1760
|
t2 = (job) => {
|
|
1836
1761
|
setSelectedJob(job);
|
|
1837
1762
|
setJobDetailOpen(true);
|
|
1838
1763
|
};
|
|
1839
|
-
$[
|
|
1840
|
-
$[
|
|
1841
|
-
$[
|
|
1842
|
-
} else t2 = $[
|
|
1764
|
+
$[2] = setJobDetailOpen;
|
|
1765
|
+
$[3] = setSelectedJob;
|
|
1766
|
+
$[4] = t2;
|
|
1767
|
+
} else t2 = $[4];
|
|
1843
1768
|
const handleSelectJob = t2;
|
|
1844
1769
|
if (!selectedQueue) {
|
|
1845
1770
|
let t3$1;
|
|
1846
|
-
if ($[
|
|
1771
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1847
1772
|
t3$1 = /* @__PURE__ */ jsx("div", {
|
|
1848
1773
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
1849
1774
|
children: "Select a queue to view jobs"
|
|
1850
1775
|
});
|
|
1851
|
-
$[
|
|
1852
|
-
} else t3$1 = $[
|
|
1776
|
+
$[5] = t3$1;
|
|
1777
|
+
} else t3$1 = $[5];
|
|
1853
1778
|
return t3$1;
|
|
1854
1779
|
}
|
|
1855
1780
|
if (isLoading) {
|
|
1856
1781
|
let t3$1;
|
|
1857
|
-
if ($[
|
|
1782
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1858
1783
|
t3$1 = /* @__PURE__ */ jsx("div", {
|
|
1859
1784
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
1860
1785
|
children: "Loading jobs..."
|
|
1861
1786
|
});
|
|
1862
|
-
$[
|
|
1863
|
-
} else t3$1 = $[
|
|
1787
|
+
$[6] = t3$1;
|
|
1788
|
+
} else t3$1 = $[6];
|
|
1864
1789
|
return t3$1;
|
|
1865
1790
|
}
|
|
1866
1791
|
if (jobs.length === 0) {
|
|
1867
1792
|
let t3$1;
|
|
1868
|
-
if ($[
|
|
1793
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1869
1794
|
t3$1 = /* @__PURE__ */ jsx("div", {
|
|
1870
1795
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
1871
1796
|
children: "No jobs in this status"
|
|
1872
1797
|
});
|
|
1873
|
-
$[
|
|
1874
|
-
} else t3$1 = $[
|
|
1798
|
+
$[7] = t3$1;
|
|
1799
|
+
} else t3$1 = $[7];
|
|
1875
1800
|
return t3$1;
|
|
1876
1801
|
}
|
|
1877
1802
|
let t3;
|
|
1878
|
-
if ($[
|
|
1803
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1879
1804
|
t3 = /* @__PURE__ */ jsx(TableHeader, {
|
|
1880
1805
|
className: "sticky top-0 bg-background/95 backdrop-blur-sm",
|
|
1881
1806
|
children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
@@ -1902,36 +1827,36 @@ const JobsTable = memo(() => {
|
|
|
1902
1827
|
})
|
|
1903
1828
|
] })
|
|
1904
1829
|
});
|
|
1905
|
-
$[
|
|
1906
|
-
} else t3 = $[
|
|
1830
|
+
$[8] = t3;
|
|
1831
|
+
} else t3 = $[8];
|
|
1907
1832
|
let t4;
|
|
1908
|
-
if ($[
|
|
1833
|
+
if ($[9] !== handleSelectJob || $[10] !== jobs || $[11] !== selectedJob?.id || $[12] !== selectedQueue) {
|
|
1909
1834
|
let t5$1;
|
|
1910
|
-
if ($[
|
|
1835
|
+
if ($[14] !== handleSelectJob || $[15] !== selectedJob?.id || $[16] !== selectedQueue) {
|
|
1911
1836
|
t5$1 = (job_0) => /* @__PURE__ */ jsx(JobRow, {
|
|
1912
1837
|
job: job_0,
|
|
1913
1838
|
queueName: selectedQueue.name,
|
|
1914
1839
|
onSelect: () => handleSelectJob(job_0),
|
|
1915
1840
|
isSelected: selectedJob?.id === job_0.id
|
|
1916
1841
|
}, job_0.id);
|
|
1917
|
-
$[
|
|
1918
|
-
$[
|
|
1919
|
-
$[
|
|
1920
|
-
$[
|
|
1921
|
-
} else t5$1 = $[
|
|
1842
|
+
$[14] = handleSelectJob;
|
|
1843
|
+
$[15] = selectedJob?.id;
|
|
1844
|
+
$[16] = selectedQueue;
|
|
1845
|
+
$[17] = t5$1;
|
|
1846
|
+
} else t5$1 = $[17];
|
|
1922
1847
|
t4 = jobs.map(t5$1);
|
|
1923
|
-
$[
|
|
1924
|
-
$[
|
|
1925
|
-
$[
|
|
1926
|
-
$[
|
|
1927
|
-
$[
|
|
1928
|
-
} else t4 = $[
|
|
1848
|
+
$[9] = handleSelectJob;
|
|
1849
|
+
$[10] = jobs;
|
|
1850
|
+
$[11] = selectedJob?.id;
|
|
1851
|
+
$[12] = selectedQueue;
|
|
1852
|
+
$[13] = t4;
|
|
1853
|
+
} else t4 = $[13];
|
|
1929
1854
|
let t5;
|
|
1930
|
-
if ($[
|
|
1855
|
+
if ($[18] !== t4) {
|
|
1931
1856
|
t5 = /* @__PURE__ */ jsxs(Table, { children: [t3, /* @__PURE__ */ jsx(TableBody, { children: t4 })] });
|
|
1932
|
-
$[
|
|
1933
|
-
$[
|
|
1934
|
-
} else t5 = $[
|
|
1857
|
+
$[18] = t4;
|
|
1858
|
+
$[19] = t5;
|
|
1859
|
+
} else t5 = $[19];
|
|
1935
1860
|
return t5;
|
|
1936
1861
|
});
|
|
1937
1862
|
JobsTable.displayName = "JobsTable";
|
|
@@ -1976,128 +1901,124 @@ const STATUS_TABS = [
|
|
|
1976
1901
|
}
|
|
1977
1902
|
];
|
|
1978
1903
|
const QueueDetail = memo(() => {
|
|
1979
|
-
const $ = c(
|
|
1980
|
-
if ($[0] !== "a2cd8aba8c654ced6959e772bf98ea6b7121ff39b06e304e3cb41d636c64e403") {
|
|
1981
|
-
for (let $i = 0; $i < 115; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1982
|
-
$[0] = "a2cd8aba8c654ced6959e772bf98ea6b7121ff39b06e304e3cb41d636c64e403";
|
|
1983
|
-
}
|
|
1904
|
+
const $ = c(114);
|
|
1984
1905
|
const queryClient$1 = useQueryClient();
|
|
1985
1906
|
const selectedQueue = useBullMQStore(_temp$2);
|
|
1986
1907
|
const selectedStatus = useBullMQStore(_temp2$2);
|
|
1987
1908
|
const setSelectedStatus = useBullMQStore(_temp3$1);
|
|
1988
1909
|
const { pauseQueue, resumeQueue, cleanQueue, drainQueue } = useQueues();
|
|
1989
1910
|
let t0;
|
|
1990
|
-
if ($[
|
|
1911
|
+
if ($[0] !== pauseQueue || $[1] !== selectedQueue) {
|
|
1991
1912
|
t0 = async () => {
|
|
1992
1913
|
if (!selectedQueue) return;
|
|
1993
1914
|
await pauseQueue(selectedQueue.name);
|
|
1994
1915
|
};
|
|
1995
|
-
$[
|
|
1996
|
-
$[
|
|
1997
|
-
$[
|
|
1998
|
-
} else t0 = $[
|
|
1916
|
+
$[0] = pauseQueue;
|
|
1917
|
+
$[1] = selectedQueue;
|
|
1918
|
+
$[2] = t0;
|
|
1919
|
+
} else t0 = $[2];
|
|
1999
1920
|
const handlePause = t0;
|
|
2000
1921
|
let t1;
|
|
2001
|
-
if ($[
|
|
1922
|
+
if ($[3] !== resumeQueue || $[4] !== selectedQueue) {
|
|
2002
1923
|
t1 = async () => {
|
|
2003
1924
|
if (!selectedQueue) return;
|
|
2004
1925
|
await resumeQueue(selectedQueue.name);
|
|
2005
1926
|
};
|
|
2006
|
-
$[
|
|
2007
|
-
$[
|
|
2008
|
-
$[
|
|
2009
|
-
} else t1 = $[
|
|
1927
|
+
$[3] = resumeQueue;
|
|
1928
|
+
$[4] = selectedQueue;
|
|
1929
|
+
$[5] = t1;
|
|
1930
|
+
} else t1 = $[5];
|
|
2010
1931
|
const handleResume = t1;
|
|
2011
1932
|
let t2;
|
|
2012
|
-
if ($[
|
|
1933
|
+
if ($[6] !== cleanQueue || $[7] !== selectedQueue) {
|
|
2013
1934
|
t2 = async () => {
|
|
2014
1935
|
if (!selectedQueue) return;
|
|
2015
1936
|
await cleanQueue(selectedQueue.name, "completed", 0, 1e3);
|
|
2016
1937
|
};
|
|
2017
|
-
$[
|
|
2018
|
-
$[
|
|
2019
|
-
$[
|
|
2020
|
-
} else t2 = $[
|
|
1938
|
+
$[6] = cleanQueue;
|
|
1939
|
+
$[7] = selectedQueue;
|
|
1940
|
+
$[8] = t2;
|
|
1941
|
+
} else t2 = $[8];
|
|
2021
1942
|
const handleCleanCompleted = t2;
|
|
2022
1943
|
let t3;
|
|
2023
|
-
if ($[
|
|
1944
|
+
if ($[9] !== cleanQueue || $[10] !== selectedQueue) {
|
|
2024
1945
|
t3 = async () => {
|
|
2025
1946
|
if (!selectedQueue) return;
|
|
2026
1947
|
await cleanQueue(selectedQueue.name, "failed", 0, 1e3);
|
|
2027
1948
|
};
|
|
2028
|
-
$[
|
|
2029
|
-
$[
|
|
2030
|
-
$[
|
|
2031
|
-
} else t3 = $[
|
|
1949
|
+
$[9] = cleanQueue;
|
|
1950
|
+
$[10] = selectedQueue;
|
|
1951
|
+
$[11] = t3;
|
|
1952
|
+
} else t3 = $[11];
|
|
2032
1953
|
const handleCleanFailed = t3;
|
|
2033
1954
|
let t4;
|
|
2034
|
-
if ($[
|
|
1955
|
+
if ($[12] !== drainQueue || $[13] !== selectedQueue) {
|
|
2035
1956
|
t4 = async () => {
|
|
2036
1957
|
if (!selectedQueue) return;
|
|
2037
1958
|
await drainQueue(selectedQueue.name);
|
|
2038
1959
|
};
|
|
2039
|
-
$[
|
|
2040
|
-
$[
|
|
2041
|
-
$[
|
|
2042
|
-
} else t4 = $[
|
|
1960
|
+
$[12] = drainQueue;
|
|
1961
|
+
$[13] = selectedQueue;
|
|
1962
|
+
$[14] = t4;
|
|
1963
|
+
} else t4 = $[14];
|
|
2043
1964
|
const handleDrain = t4;
|
|
2044
1965
|
let t5;
|
|
2045
|
-
if ($[
|
|
1966
|
+
if ($[15] !== queryClient$1 || $[16] !== selectedQueue) {
|
|
2046
1967
|
t5 = () => {
|
|
2047
1968
|
if (!selectedQueue) return;
|
|
2048
1969
|
queryClient$1.invalidateQueries({ queryKey: ["jobs", selectedQueue.name] });
|
|
2049
1970
|
};
|
|
2050
|
-
$[
|
|
2051
|
-
$[
|
|
2052
|
-
$[
|
|
2053
|
-
} else t5 = $[
|
|
1971
|
+
$[15] = queryClient$1;
|
|
1972
|
+
$[16] = selectedQueue;
|
|
1973
|
+
$[17] = t5;
|
|
1974
|
+
} else t5 = $[17];
|
|
2054
1975
|
const handleRefresh = t5;
|
|
2055
1976
|
if (!selectedQueue) {
|
|
2056
1977
|
let t6$1;
|
|
2057
|
-
if ($[
|
|
1978
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2058
1979
|
t6$1 = /* @__PURE__ */ jsx("div", {
|
|
2059
1980
|
className: "flex items-center justify-center h-full text-muted-foreground",
|
|
2060
1981
|
children: "Select a queue from the list to view details"
|
|
2061
1982
|
});
|
|
2062
|
-
$[
|
|
2063
|
-
} else t6$1 = $[
|
|
1983
|
+
$[18] = t6$1;
|
|
1984
|
+
} else t6$1 = $[18];
|
|
2064
1985
|
return t6$1;
|
|
2065
1986
|
}
|
|
2066
1987
|
let t6;
|
|
2067
|
-
if ($[
|
|
1988
|
+
if ($[19] !== selectedQueue.displayName) {
|
|
2068
1989
|
t6 = /* @__PURE__ */ jsx("h2", {
|
|
2069
1990
|
className: "font-semibold text-lg",
|
|
2070
1991
|
children: selectedQueue.displayName
|
|
2071
1992
|
});
|
|
2072
|
-
$[
|
|
2073
|
-
$[
|
|
2074
|
-
} else t6 = $[
|
|
1993
|
+
$[19] = selectedQueue.displayName;
|
|
1994
|
+
$[20] = t6;
|
|
1995
|
+
} else t6 = $[20];
|
|
2075
1996
|
let t7;
|
|
2076
|
-
if ($[
|
|
1997
|
+
if ($[21] !== selectedQueue.isPaused) {
|
|
2077
1998
|
t7 = selectedQueue.isPaused && /* @__PURE__ */ jsx("span", {
|
|
2078
1999
|
className: "px-2 py-0.5 text-xs rounded bg-yellow-500/20 text-yellow-600",
|
|
2079
2000
|
children: "Paused"
|
|
2080
2001
|
});
|
|
2081
|
-
$[
|
|
2082
|
-
$[
|
|
2083
|
-
} else t7 = $[
|
|
2002
|
+
$[21] = selectedQueue.isPaused;
|
|
2003
|
+
$[22] = t7;
|
|
2004
|
+
} else t7 = $[22];
|
|
2084
2005
|
let t8;
|
|
2085
|
-
if ($[
|
|
2006
|
+
if ($[23] !== t6 || $[24] !== t7) {
|
|
2086
2007
|
t8 = /* @__PURE__ */ jsxs("div", {
|
|
2087
2008
|
className: "flex items-center gap-3",
|
|
2088
2009
|
children: [t6, t7]
|
|
2089
2010
|
});
|
|
2090
|
-
$[
|
|
2091
|
-
$[
|
|
2092
|
-
$[
|
|
2093
|
-
} else t8 = $[
|
|
2011
|
+
$[23] = t6;
|
|
2012
|
+
$[24] = t7;
|
|
2013
|
+
$[25] = t8;
|
|
2014
|
+
} else t8 = $[25];
|
|
2094
2015
|
let t9;
|
|
2095
|
-
if ($[
|
|
2016
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2096
2017
|
t9 = /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" });
|
|
2097
|
-
$[
|
|
2098
|
-
} else t9 = $[
|
|
2018
|
+
$[26] = t9;
|
|
2019
|
+
} else t9 = $[26];
|
|
2099
2020
|
let t10;
|
|
2100
|
-
if ($[
|
|
2021
|
+
if ($[27] !== handleRefresh) {
|
|
2101
2022
|
t10 = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
2102
2023
|
asChild: true,
|
|
2103
2024
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -2107,22 +2028,22 @@ const QueueDetail = memo(() => {
|
|
|
2107
2028
|
children: t9
|
|
2108
2029
|
})
|
|
2109
2030
|
});
|
|
2110
|
-
$[
|
|
2111
|
-
$[
|
|
2112
|
-
} else t10 = $[
|
|
2031
|
+
$[27] = handleRefresh;
|
|
2032
|
+
$[28] = t10;
|
|
2033
|
+
} else t10 = $[28];
|
|
2113
2034
|
let t11;
|
|
2114
|
-
if ($[
|
|
2035
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2115
2036
|
t11 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Refresh queue stats and jobs list" }) });
|
|
2116
|
-
$[
|
|
2117
|
-
} else t11 = $[
|
|
2037
|
+
$[29] = t11;
|
|
2038
|
+
} else t11 = $[29];
|
|
2118
2039
|
let t12;
|
|
2119
|
-
if ($[
|
|
2040
|
+
if ($[30] !== t10) {
|
|
2120
2041
|
t12 = /* @__PURE__ */ jsxs(Tooltip, { children: [t10, t11] });
|
|
2121
|
-
$[
|
|
2122
|
-
$[
|
|
2123
|
-
} else t12 = $[
|
|
2042
|
+
$[30] = t10;
|
|
2043
|
+
$[31] = t12;
|
|
2044
|
+
} else t12 = $[31];
|
|
2124
2045
|
let t13;
|
|
2125
|
-
if ($[
|
|
2046
|
+
if ($[32] !== handlePause || $[33] !== handleResume || $[34] !== selectedQueue.isPaused) {
|
|
2126
2047
|
t13 = selectedQueue.isPaused ? /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
2127
2048
|
asChild: true,
|
|
2128
2049
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
@@ -2140,13 +2061,13 @@ const QueueDetail = memo(() => {
|
|
|
2140
2061
|
children: [/* @__PURE__ */ jsx(Pause, { className: "mr-2 h-4 w-4" }), "Pause"]
|
|
2141
2062
|
})
|
|
2142
2063
|
}), /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Stop workers from picking up new jobs" }) })] });
|
|
2143
|
-
$[
|
|
2144
|
-
$[
|
|
2145
|
-
$[
|
|
2146
|
-
$[
|
|
2147
|
-
} else t13 = $[
|
|
2064
|
+
$[32] = handlePause;
|
|
2065
|
+
$[33] = handleResume;
|
|
2066
|
+
$[34] = selectedQueue.isPaused;
|
|
2067
|
+
$[35] = t13;
|
|
2068
|
+
} else t13 = $[35];
|
|
2148
2069
|
let t14;
|
|
2149
|
-
if ($[
|
|
2070
|
+
if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2150
2071
|
t14 = /* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
2151
2072
|
asChild: true,
|
|
2152
2073
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -2155,62 +2076,63 @@ const QueueDetail = memo(() => {
|
|
|
2155
2076
|
children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
|
|
2156
2077
|
})
|
|
2157
2078
|
});
|
|
2158
|
-
$[
|
|
2159
|
-
} else t14 = $[
|
|
2079
|
+
$[36] = t14;
|
|
2080
|
+
} else t14 = $[36];
|
|
2160
2081
|
let t15;
|
|
2161
|
-
if ($[
|
|
2082
|
+
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2162
2083
|
t15 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
2163
|
-
$[
|
|
2164
|
-
} else t15 = $[
|
|
2084
|
+
$[37] = t15;
|
|
2085
|
+
} else t15 = $[37];
|
|
2165
2086
|
let t16;
|
|
2166
|
-
if ($[
|
|
2087
|
+
if ($[38] !== handleCleanCompleted) {
|
|
2167
2088
|
t16 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
2168
2089
|
onClick: handleCleanCompleted,
|
|
2169
2090
|
children: [t15, "Clean Completed"]
|
|
2170
2091
|
});
|
|
2171
|
-
$[
|
|
2172
|
-
$[
|
|
2173
|
-
} else t16 = $[
|
|
2092
|
+
$[38] = handleCleanCompleted;
|
|
2093
|
+
$[39] = t16;
|
|
2094
|
+
} else t16 = $[39];
|
|
2174
2095
|
let t17;
|
|
2175
|
-
if ($[
|
|
2096
|
+
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2176
2097
|
t17 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
2177
|
-
$[
|
|
2178
|
-
} else t17 = $[
|
|
2098
|
+
$[40] = t17;
|
|
2099
|
+
} else t17 = $[40];
|
|
2179
2100
|
let t18;
|
|
2180
|
-
if ($[
|
|
2101
|
+
if ($[41] !== handleCleanFailed) {
|
|
2181
2102
|
t18 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
2182
2103
|
onClick: handleCleanFailed,
|
|
2183
2104
|
children: [t17, "Clean Failed"]
|
|
2184
2105
|
});
|
|
2185
|
-
$[
|
|
2186
|
-
$[
|
|
2187
|
-
} else t18 = $[
|
|
2106
|
+
$[41] = handleCleanFailed;
|
|
2107
|
+
$[42] = t18;
|
|
2108
|
+
} else t18 = $[42];
|
|
2188
2109
|
let t19;
|
|
2189
|
-
if ($[
|
|
2110
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2190
2111
|
t19 = /* @__PURE__ */ jsx(DropdownMenuSeparator, {});
|
|
2191
|
-
$[
|
|
2192
|
-
} else t19 = $[
|
|
2112
|
+
$[43] = t19;
|
|
2113
|
+
} else t19 = $[43];
|
|
2193
2114
|
let t20;
|
|
2194
|
-
if ($[
|
|
2115
|
+
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2195
2116
|
t20 = /* @__PURE__ */ jsx(Trash, { className: "mr-2 h-4 w-4" });
|
|
2196
|
-
$[
|
|
2197
|
-
} else t20 = $[
|
|
2117
|
+
$[44] = t20;
|
|
2118
|
+
} else t20 = $[44];
|
|
2198
2119
|
let t21;
|
|
2199
|
-
if ($[
|
|
2120
|
+
if ($[45] !== handleDrain) {
|
|
2200
2121
|
t21 = /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
2201
2122
|
onClick: handleDrain,
|
|
2202
2123
|
className: "text-destructive",
|
|
2203
2124
|
children: [t20, "Drain Queue"]
|
|
2204
2125
|
});
|
|
2205
|
-
$[
|
|
2206
|
-
$[
|
|
2207
|
-
} else t21 = $[
|
|
2126
|
+
$[45] = handleDrain;
|
|
2127
|
+
$[46] = t21;
|
|
2128
|
+
} else t21 = $[46];
|
|
2208
2129
|
let t22;
|
|
2209
|
-
if ($[
|
|
2130
|
+
if ($[47] !== t16 || $[48] !== t18 || $[49] !== t21) {
|
|
2210
2131
|
t22 = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
2211
2132
|
asChild: true,
|
|
2212
2133
|
children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [t14, /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
2213
2134
|
align: "end",
|
|
2135
|
+
className: "bg-background text-foreground",
|
|
2214
2136
|
children: [
|
|
2215
2137
|
t16,
|
|
2216
2138
|
t18,
|
|
@@ -2219,24 +2141,24 @@ const QueueDetail = memo(() => {
|
|
|
2219
2141
|
]
|
|
2220
2142
|
})] })
|
|
2221
2143
|
});
|
|
2222
|
-
$[
|
|
2223
|
-
$[
|
|
2224
|
-
$[
|
|
2225
|
-
$[
|
|
2226
|
-
} else t22 = $[
|
|
2144
|
+
$[47] = t16;
|
|
2145
|
+
$[48] = t18;
|
|
2146
|
+
$[49] = t21;
|
|
2147
|
+
$[50] = t22;
|
|
2148
|
+
} else t22 = $[50];
|
|
2227
2149
|
let t23;
|
|
2228
|
-
if ($[
|
|
2150
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2229
2151
|
t23 = /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "More actions" }) });
|
|
2230
|
-
$[
|
|
2231
|
-
} else t23 = $[
|
|
2152
|
+
$[51] = t23;
|
|
2153
|
+
} else t23 = $[51];
|
|
2232
2154
|
let t24;
|
|
2233
|
-
if ($[
|
|
2155
|
+
if ($[52] !== t22) {
|
|
2234
2156
|
t24 = /* @__PURE__ */ jsxs(Tooltip, { children: [t22, t23] });
|
|
2235
|
-
$[
|
|
2236
|
-
$[
|
|
2237
|
-
} else t24 = $[
|
|
2157
|
+
$[52] = t22;
|
|
2158
|
+
$[53] = t24;
|
|
2159
|
+
} else t24 = $[53];
|
|
2238
2160
|
let t25;
|
|
2239
|
-
if ($[
|
|
2161
|
+
if ($[54] !== t12 || $[55] !== t13 || $[56] !== t24) {
|
|
2240
2162
|
t25 = /* @__PURE__ */ jsxs("div", {
|
|
2241
2163
|
className: "flex items-center gap-2",
|
|
2242
2164
|
children: [
|
|
@@ -2245,161 +2167,161 @@ const QueueDetail = memo(() => {
|
|
|
2245
2167
|
t24
|
|
2246
2168
|
]
|
|
2247
2169
|
});
|
|
2248
|
-
$[
|
|
2249
|
-
$[
|
|
2250
|
-
$[
|
|
2251
|
-
$[
|
|
2252
|
-
} else t25 = $[
|
|
2170
|
+
$[54] = t12;
|
|
2171
|
+
$[55] = t13;
|
|
2172
|
+
$[56] = t24;
|
|
2173
|
+
$[57] = t25;
|
|
2174
|
+
} else t25 = $[57];
|
|
2253
2175
|
let t26;
|
|
2254
|
-
if ($[
|
|
2176
|
+
if ($[58] !== t25 || $[59] !== t8) {
|
|
2255
2177
|
t26 = /* @__PURE__ */ jsxs("div", {
|
|
2256
2178
|
className: "flex items-center justify-between p-3 border-b border-border",
|
|
2257
2179
|
children: [t8, t25]
|
|
2258
2180
|
});
|
|
2259
|
-
$[
|
|
2260
|
-
$[
|
|
2261
|
-
$[
|
|
2262
|
-
} else t26 = $[
|
|
2181
|
+
$[58] = t25;
|
|
2182
|
+
$[59] = t8;
|
|
2183
|
+
$[60] = t26;
|
|
2184
|
+
} else t26 = $[60];
|
|
2263
2185
|
let t27;
|
|
2264
|
-
if ($[
|
|
2186
|
+
if ($[61] !== selectedQueue.stats.waiting) {
|
|
2265
2187
|
t27 = /* @__PURE__ */ jsx("div", {
|
|
2266
2188
|
className: "text-2xl font-bold text-blue-500",
|
|
2267
2189
|
children: selectedQueue.stats.waiting
|
|
2268
2190
|
});
|
|
2269
|
-
$[
|
|
2270
|
-
$[
|
|
2271
|
-
} else t27 = $[
|
|
2191
|
+
$[61] = selectedQueue.stats.waiting;
|
|
2192
|
+
$[62] = t27;
|
|
2193
|
+
} else t27 = $[62];
|
|
2272
2194
|
let t28;
|
|
2273
|
-
if ($[
|
|
2195
|
+
if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2274
2196
|
t28 = /* @__PURE__ */ jsx("div", {
|
|
2275
2197
|
className: "text-xs text-muted-foreground",
|
|
2276
2198
|
children: "Waiting"
|
|
2277
2199
|
});
|
|
2278
|
-
$[
|
|
2279
|
-
} else t28 = $[
|
|
2200
|
+
$[63] = t28;
|
|
2201
|
+
} else t28 = $[63];
|
|
2280
2202
|
let t29;
|
|
2281
|
-
if ($[
|
|
2203
|
+
if ($[64] !== t27) {
|
|
2282
2204
|
t29 = /* @__PURE__ */ jsxs("div", { children: [t27, t28] });
|
|
2283
|
-
$[
|
|
2284
|
-
$[
|
|
2285
|
-
} else t29 = $[
|
|
2205
|
+
$[64] = t27;
|
|
2206
|
+
$[65] = t29;
|
|
2207
|
+
} else t29 = $[65];
|
|
2286
2208
|
let t30;
|
|
2287
|
-
if ($[
|
|
2209
|
+
if ($[66] !== selectedQueue.stats.active) {
|
|
2288
2210
|
t30 = /* @__PURE__ */ jsx("div", {
|
|
2289
2211
|
className: "text-2xl font-bold text-yellow-500",
|
|
2290
2212
|
children: selectedQueue.stats.active
|
|
2291
2213
|
});
|
|
2292
|
-
$[
|
|
2293
|
-
$[
|
|
2294
|
-
} else t30 = $[
|
|
2214
|
+
$[66] = selectedQueue.stats.active;
|
|
2215
|
+
$[67] = t30;
|
|
2216
|
+
} else t30 = $[67];
|
|
2295
2217
|
let t31;
|
|
2296
|
-
if ($[
|
|
2218
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2297
2219
|
t31 = /* @__PURE__ */ jsx("div", {
|
|
2298
2220
|
className: "text-xs text-muted-foreground",
|
|
2299
2221
|
children: "Active"
|
|
2300
2222
|
});
|
|
2301
|
-
$[
|
|
2302
|
-
} else t31 = $[
|
|
2223
|
+
$[68] = t31;
|
|
2224
|
+
} else t31 = $[68];
|
|
2303
2225
|
let t32;
|
|
2304
|
-
if ($[
|
|
2226
|
+
if ($[69] !== t30) {
|
|
2305
2227
|
t32 = /* @__PURE__ */ jsxs("div", { children: [t30, t31] });
|
|
2306
|
-
$[
|
|
2307
|
-
$[
|
|
2308
|
-
} else t32 = $[
|
|
2228
|
+
$[69] = t30;
|
|
2229
|
+
$[70] = t32;
|
|
2230
|
+
} else t32 = $[70];
|
|
2309
2231
|
let t33;
|
|
2310
|
-
if ($[
|
|
2232
|
+
if ($[71] !== selectedQueue.stats.completed) {
|
|
2311
2233
|
t33 = /* @__PURE__ */ jsx("div", {
|
|
2312
2234
|
className: "text-2xl font-bold text-green-500",
|
|
2313
2235
|
children: selectedQueue.stats.completed
|
|
2314
2236
|
});
|
|
2315
|
-
$[
|
|
2316
|
-
$[
|
|
2317
|
-
} else t33 = $[
|
|
2237
|
+
$[71] = selectedQueue.stats.completed;
|
|
2238
|
+
$[72] = t33;
|
|
2239
|
+
} else t33 = $[72];
|
|
2318
2240
|
let t34;
|
|
2319
|
-
if ($[
|
|
2241
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2320
2242
|
t34 = /* @__PURE__ */ jsx("div", {
|
|
2321
2243
|
className: "text-xs text-muted-foreground",
|
|
2322
2244
|
children: "Completed"
|
|
2323
2245
|
});
|
|
2324
|
-
$[
|
|
2325
|
-
} else t34 = $[
|
|
2246
|
+
$[73] = t34;
|
|
2247
|
+
} else t34 = $[73];
|
|
2326
2248
|
let t35;
|
|
2327
|
-
if ($[
|
|
2249
|
+
if ($[74] !== t33) {
|
|
2328
2250
|
t35 = /* @__PURE__ */ jsxs("div", { children: [t33, t34] });
|
|
2329
|
-
$[
|
|
2330
|
-
$[
|
|
2331
|
-
} else t35 = $[
|
|
2251
|
+
$[74] = t33;
|
|
2252
|
+
$[75] = t35;
|
|
2253
|
+
} else t35 = $[75];
|
|
2332
2254
|
let t36;
|
|
2333
|
-
if ($[
|
|
2255
|
+
if ($[76] !== selectedQueue.stats.failed) {
|
|
2334
2256
|
t36 = /* @__PURE__ */ jsx("div", {
|
|
2335
2257
|
className: "text-2xl font-bold text-destructive",
|
|
2336
2258
|
children: selectedQueue.stats.failed
|
|
2337
2259
|
});
|
|
2338
|
-
$[
|
|
2339
|
-
$[
|
|
2340
|
-
} else t36 = $[
|
|
2260
|
+
$[76] = selectedQueue.stats.failed;
|
|
2261
|
+
$[77] = t36;
|
|
2262
|
+
} else t36 = $[77];
|
|
2341
2263
|
let t37;
|
|
2342
|
-
if ($[
|
|
2264
|
+
if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2343
2265
|
t37 = /* @__PURE__ */ jsx("div", {
|
|
2344
2266
|
className: "text-xs text-muted-foreground",
|
|
2345
2267
|
children: "Failed"
|
|
2346
2268
|
});
|
|
2347
|
-
$[
|
|
2348
|
-
} else t37 = $[
|
|
2269
|
+
$[78] = t37;
|
|
2270
|
+
} else t37 = $[78];
|
|
2349
2271
|
let t38;
|
|
2350
|
-
if ($[
|
|
2272
|
+
if ($[79] !== t36) {
|
|
2351
2273
|
t38 = /* @__PURE__ */ jsxs("div", { children: [t36, t37] });
|
|
2352
|
-
$[
|
|
2353
|
-
$[
|
|
2354
|
-
} else t38 = $[
|
|
2274
|
+
$[79] = t36;
|
|
2275
|
+
$[80] = t38;
|
|
2276
|
+
} else t38 = $[80];
|
|
2355
2277
|
let t39;
|
|
2356
|
-
if ($[
|
|
2278
|
+
if ($[81] !== selectedQueue.stats.delayed) {
|
|
2357
2279
|
t39 = /* @__PURE__ */ jsx("div", {
|
|
2358
2280
|
className: "text-2xl font-bold text-purple-500",
|
|
2359
2281
|
children: selectedQueue.stats.delayed
|
|
2360
2282
|
});
|
|
2361
|
-
$[
|
|
2362
|
-
$[
|
|
2363
|
-
} else t39 = $[
|
|
2283
|
+
$[81] = selectedQueue.stats.delayed;
|
|
2284
|
+
$[82] = t39;
|
|
2285
|
+
} else t39 = $[82];
|
|
2364
2286
|
let t40;
|
|
2365
|
-
if ($[
|
|
2287
|
+
if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2366
2288
|
t40 = /* @__PURE__ */ jsx("div", {
|
|
2367
2289
|
className: "text-xs text-muted-foreground",
|
|
2368
2290
|
children: "Delayed"
|
|
2369
2291
|
});
|
|
2370
|
-
$[
|
|
2371
|
-
} else t40 = $[
|
|
2292
|
+
$[83] = t40;
|
|
2293
|
+
} else t40 = $[83];
|
|
2372
2294
|
let t41;
|
|
2373
|
-
if ($[
|
|
2295
|
+
if ($[84] !== t39) {
|
|
2374
2296
|
t41 = /* @__PURE__ */ jsxs("div", { children: [t39, t40] });
|
|
2375
|
-
$[
|
|
2376
|
-
$[
|
|
2377
|
-
} else t41 = $[
|
|
2297
|
+
$[84] = t39;
|
|
2298
|
+
$[85] = t41;
|
|
2299
|
+
} else t41 = $[85];
|
|
2378
2300
|
let t42;
|
|
2379
|
-
if ($[
|
|
2301
|
+
if ($[86] !== selectedQueue.stats.paused) {
|
|
2380
2302
|
t42 = /* @__PURE__ */ jsx("div", {
|
|
2381
2303
|
className: "text-2xl font-bold text-muted-foreground",
|
|
2382
2304
|
children: selectedQueue.stats.paused
|
|
2383
2305
|
});
|
|
2384
|
-
$[
|
|
2385
|
-
$[
|
|
2386
|
-
} else t42 = $[
|
|
2306
|
+
$[86] = selectedQueue.stats.paused;
|
|
2307
|
+
$[87] = t42;
|
|
2308
|
+
} else t42 = $[87];
|
|
2387
2309
|
let t43;
|
|
2388
|
-
if ($[
|
|
2310
|
+
if ($[88] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2389
2311
|
t43 = /* @__PURE__ */ jsx("div", {
|
|
2390
2312
|
className: "text-xs text-muted-foreground",
|
|
2391
2313
|
children: "Paused"
|
|
2392
2314
|
});
|
|
2393
|
-
$[
|
|
2394
|
-
} else t43 = $[
|
|
2315
|
+
$[88] = t43;
|
|
2316
|
+
} else t43 = $[88];
|
|
2395
2317
|
let t44;
|
|
2396
|
-
if ($[
|
|
2318
|
+
if ($[89] !== t42) {
|
|
2397
2319
|
t44 = /* @__PURE__ */ jsxs("div", { children: [t42, t43] });
|
|
2398
|
-
$[
|
|
2399
|
-
$[
|
|
2400
|
-
} else t44 = $[
|
|
2320
|
+
$[89] = t42;
|
|
2321
|
+
$[90] = t44;
|
|
2322
|
+
} else t44 = $[90];
|
|
2401
2323
|
let t45;
|
|
2402
|
-
if ($[
|
|
2324
|
+
if ($[91] !== t29 || $[92] !== t32 || $[93] !== t35 || $[94] !== t38 || $[95] !== t41 || $[96] !== t44) {
|
|
2403
2325
|
t45 = /* @__PURE__ */ jsx("div", {
|
|
2404
2326
|
className: "p-3 border-b border-border",
|
|
2405
2327
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -2414,22 +2336,22 @@ const QueueDetail = memo(() => {
|
|
|
2414
2336
|
]
|
|
2415
2337
|
})
|
|
2416
2338
|
});
|
|
2417
|
-
$[
|
|
2418
|
-
$[
|
|
2419
|
-
$[
|
|
2420
|
-
$[
|
|
2421
|
-
$[
|
|
2422
|
-
$[
|
|
2423
|
-
$[
|
|
2424
|
-
} 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];
|
|
2425
2347
|
let t46;
|
|
2426
|
-
if ($[
|
|
2348
|
+
if ($[98] !== setSelectedStatus) {
|
|
2427
2349
|
t46 = (v) => setSelectedStatus(v);
|
|
2428
|
-
$[
|
|
2429
|
-
$[
|
|
2430
|
-
} else t46 = $[
|
|
2350
|
+
$[98] = setSelectedStatus;
|
|
2351
|
+
$[99] = t46;
|
|
2352
|
+
} else t46 = $[99];
|
|
2431
2353
|
let t47;
|
|
2432
|
-
if ($[
|
|
2354
|
+
if ($[100] !== selectedQueue.stats || $[101] !== selectedStatus) {
|
|
2433
2355
|
t47 = STATUS_TABS.map((tab) => /* @__PURE__ */ jsxs(TabsTrigger, {
|
|
2434
2356
|
value: tab.value,
|
|
2435
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"),
|
|
@@ -2438,42 +2360,42 @@ const QueueDetail = memo(() => {
|
|
|
2438
2360
|
children: selectedQueue.stats[tab.value]
|
|
2439
2361
|
})]
|
|
2440
2362
|
}, tab.value));
|
|
2441
|
-
$[
|
|
2442
|
-
$[
|
|
2443
|
-
$[
|
|
2444
|
-
} else t47 = $[
|
|
2363
|
+
$[100] = selectedQueue.stats;
|
|
2364
|
+
$[101] = selectedStatus;
|
|
2365
|
+
$[102] = t47;
|
|
2366
|
+
} else t47 = $[102];
|
|
2445
2367
|
let t48;
|
|
2446
|
-
if ($[
|
|
2368
|
+
if ($[103] !== t47) {
|
|
2447
2369
|
t48 = /* @__PURE__ */ jsx("div", {
|
|
2448
2370
|
className: "px-3 pt-2 border-b border-border",
|
|
2449
2371
|
children: /* @__PURE__ */ jsx(TabsList, { children: t47 })
|
|
2450
2372
|
});
|
|
2451
|
-
$[
|
|
2452
|
-
$[
|
|
2453
|
-
} else t48 = $[
|
|
2373
|
+
$[103] = t47;
|
|
2374
|
+
$[104] = t48;
|
|
2375
|
+
} else t48 = $[104];
|
|
2454
2376
|
let t49;
|
|
2455
|
-
if ($[
|
|
2377
|
+
if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2456
2378
|
t49 = /* @__PURE__ */ jsx("div", {
|
|
2457
2379
|
className: "flex-1 overflow-auto",
|
|
2458
2380
|
children: /* @__PURE__ */ jsx(JobsTable, {})
|
|
2459
2381
|
});
|
|
2460
|
-
$[
|
|
2461
|
-
} else t49 = $[
|
|
2382
|
+
$[105] = t49;
|
|
2383
|
+
} else t49 = $[105];
|
|
2462
2384
|
let t50;
|
|
2463
|
-
if ($[
|
|
2385
|
+
if ($[106] !== selectedStatus || $[107] !== t46 || $[108] !== t48) {
|
|
2464
2386
|
t50 = /* @__PURE__ */ jsxs(Tabs, {
|
|
2465
2387
|
value: selectedStatus,
|
|
2466
2388
|
onValueChange: t46,
|
|
2467
2389
|
className: "flex-1 flex flex-col",
|
|
2468
2390
|
children: [t48, t49]
|
|
2469
2391
|
});
|
|
2470
|
-
$[
|
|
2471
|
-
$[
|
|
2472
|
-
$[
|
|
2473
|
-
$[
|
|
2474
|
-
} else t50 = $[
|
|
2392
|
+
$[106] = selectedStatus;
|
|
2393
|
+
$[107] = t46;
|
|
2394
|
+
$[108] = t48;
|
|
2395
|
+
$[109] = t50;
|
|
2396
|
+
} else t50 = $[109];
|
|
2475
2397
|
let t51;
|
|
2476
|
-
if ($[
|
|
2398
|
+
if ($[110] !== t26 || $[111] !== t45 || $[112] !== t50) {
|
|
2477
2399
|
t51 = /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs("div", {
|
|
2478
2400
|
className: "flex flex-col h-full",
|
|
2479
2401
|
children: [
|
|
@@ -2482,11 +2404,11 @@ const QueueDetail = memo(() => {
|
|
|
2482
2404
|
t50
|
|
2483
2405
|
]
|
|
2484
2406
|
}) });
|
|
2485
|
-
$[
|
|
2486
|
-
$[
|
|
2487
|
-
$[
|
|
2488
|
-
$[
|
|
2489
|
-
} else t51 = $[
|
|
2407
|
+
$[110] = t26;
|
|
2408
|
+
$[111] = t45;
|
|
2409
|
+
$[112] = t50;
|
|
2410
|
+
$[113] = t51;
|
|
2411
|
+
} else t51 = $[113];
|
|
2490
2412
|
return t51;
|
|
2491
2413
|
});
|
|
2492
2414
|
QueueDetail.displayName = "QueueDetail";
|
|
@@ -2503,50 +2425,46 @@ function _temp3$1(state_1) {
|
|
|
2503
2425
|
//#endregion
|
|
2504
2426
|
//#region src/components/queue-list.tsx
|
|
2505
2427
|
const QueueItem = memo((t0) => {
|
|
2506
|
-
const $ = c(
|
|
2507
|
-
if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
|
|
2508
|
-
for (let $i = 0; $i < 54; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2509
|
-
$[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
|
|
2510
|
-
}
|
|
2428
|
+
const $ = c(53);
|
|
2511
2429
|
const { queue, isSelected, onClick } = t0;
|
|
2512
2430
|
const totalJobs = queue.stats.waiting + queue.stats.active + queue.stats.delayed + queue.stats.prioritized;
|
|
2513
2431
|
const hasFailedJobs = queue.stats.failed > 0;
|
|
2514
2432
|
const t1 = isSelected ? "bg-muted-foreground/10" : "hover:bg-muted/70";
|
|
2515
2433
|
let t2;
|
|
2516
|
-
if ($[
|
|
2434
|
+
if ($[0] !== t1) {
|
|
2517
2435
|
t2 = cn("w-full text-left p-3 transition-colors border-b border-border", t1);
|
|
2518
|
-
$[
|
|
2519
|
-
$[
|
|
2520
|
-
} else t2 = $[
|
|
2436
|
+
$[0] = t1;
|
|
2437
|
+
$[1] = t2;
|
|
2438
|
+
} else t2 = $[1];
|
|
2521
2439
|
let t3;
|
|
2522
|
-
if ($[
|
|
2440
|
+
if ($[2] !== queue.isDLQ) {
|
|
2523
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" });
|
|
2524
|
-
$[
|
|
2525
|
-
$[
|
|
2526
|
-
} else t3 = $[
|
|
2442
|
+
$[2] = queue.isDLQ;
|
|
2443
|
+
$[3] = t3;
|
|
2444
|
+
} else t3 = $[3];
|
|
2527
2445
|
let t4;
|
|
2528
|
-
if ($[
|
|
2446
|
+
if ($[4] !== queue.displayName) {
|
|
2529
2447
|
t4 = /* @__PURE__ */ jsx("span", {
|
|
2530
2448
|
className: "font-semibold text-sm truncate flex-1",
|
|
2531
2449
|
children: queue.displayName
|
|
2532
2450
|
});
|
|
2533
|
-
$[
|
|
2534
|
-
$[
|
|
2535
|
-
} else t4 = $[
|
|
2451
|
+
$[4] = queue.displayName;
|
|
2452
|
+
$[5] = t4;
|
|
2453
|
+
} else t4 = $[5];
|
|
2536
2454
|
let t5;
|
|
2537
|
-
if ($[
|
|
2455
|
+
if ($[6] !== queue.isPaused) {
|
|
2538
2456
|
t5 = queue.isPaused && /* @__PURE__ */ jsx(Pause, { className: "w-3 h-3 text-yellow-500" });
|
|
2539
|
-
$[
|
|
2540
|
-
$[
|
|
2541
|
-
} else t5 = $[
|
|
2457
|
+
$[6] = queue.isPaused;
|
|
2458
|
+
$[7] = t5;
|
|
2459
|
+
} else t5 = $[7];
|
|
2542
2460
|
let t6;
|
|
2543
|
-
if ($[
|
|
2461
|
+
if ($[8] !== hasFailedJobs) {
|
|
2544
2462
|
t6 = hasFailedJobs && /* @__PURE__ */ jsx(AlertTriangle, { className: "w-3 h-3 text-destructive" });
|
|
2545
|
-
$[
|
|
2546
|
-
$[
|
|
2547
|
-
} else t6 = $[
|
|
2463
|
+
$[8] = hasFailedJobs;
|
|
2464
|
+
$[9] = t6;
|
|
2465
|
+
} else t6 = $[9];
|
|
2548
2466
|
let t7;
|
|
2549
|
-
if ($[
|
|
2467
|
+
if ($[10] !== t3 || $[11] !== t4 || $[12] !== t5 || $[13] !== t6) {
|
|
2550
2468
|
t7 = /* @__PURE__ */ jsxs("div", {
|
|
2551
2469
|
className: "flex items-center gap-2 mb-1",
|
|
2552
2470
|
children: [
|
|
@@ -2556,29 +2474,29 @@ const QueueItem = memo((t0) => {
|
|
|
2556
2474
|
t6
|
|
2557
2475
|
]
|
|
2558
2476
|
});
|
|
2559
|
-
$[
|
|
2560
|
-
$[
|
|
2561
|
-
$[
|
|
2562
|
-
$[
|
|
2563
|
-
$[
|
|
2564
|
-
} else t7 = $[
|
|
2477
|
+
$[10] = t3;
|
|
2478
|
+
$[11] = t4;
|
|
2479
|
+
$[12] = t5;
|
|
2480
|
+
$[13] = t6;
|
|
2481
|
+
$[14] = t7;
|
|
2482
|
+
} else t7 = $[14];
|
|
2565
2483
|
let t8;
|
|
2566
|
-
if ($[
|
|
2484
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2567
2485
|
t8 = /* @__PURE__ */ jsx("span", {
|
|
2568
2486
|
className: "text-muted-foreground",
|
|
2569
2487
|
children: "Wait"
|
|
2570
2488
|
});
|
|
2571
|
-
$[
|
|
2572
|
-
} else t8 = $[
|
|
2489
|
+
$[15] = t8;
|
|
2490
|
+
} else t8 = $[15];
|
|
2573
2491
|
const t9 = queue.stats.waiting > 0 && "text-blue-500";
|
|
2574
2492
|
let t10;
|
|
2575
|
-
if ($[
|
|
2493
|
+
if ($[16] !== t9) {
|
|
2576
2494
|
t10 = cn("font-mono", t9);
|
|
2577
|
-
$[
|
|
2578
|
-
$[
|
|
2579
|
-
} else t10 = $[
|
|
2495
|
+
$[16] = t9;
|
|
2496
|
+
$[17] = t10;
|
|
2497
|
+
} else t10 = $[17];
|
|
2580
2498
|
let t11;
|
|
2581
|
-
if ($[
|
|
2499
|
+
if ($[18] !== queue.stats.waiting || $[19] !== t10) {
|
|
2582
2500
|
t11 = /* @__PURE__ */ jsxs("div", {
|
|
2583
2501
|
className: "flex flex-col",
|
|
2584
2502
|
children: [t8, /* @__PURE__ */ jsx("span", {
|
|
@@ -2586,27 +2504,27 @@ const QueueItem = memo((t0) => {
|
|
|
2586
2504
|
children: queue.stats.waiting
|
|
2587
2505
|
})]
|
|
2588
2506
|
});
|
|
2589
|
-
$[
|
|
2590
|
-
$[
|
|
2591
|
-
$[
|
|
2592
|
-
} else t11 = $[
|
|
2507
|
+
$[18] = queue.stats.waiting;
|
|
2508
|
+
$[19] = t10;
|
|
2509
|
+
$[20] = t11;
|
|
2510
|
+
} else t11 = $[20];
|
|
2593
2511
|
let t12;
|
|
2594
|
-
if ($[
|
|
2512
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2595
2513
|
t12 = /* @__PURE__ */ jsx("span", {
|
|
2596
2514
|
className: "text-muted-foreground",
|
|
2597
2515
|
children: "Active"
|
|
2598
2516
|
});
|
|
2599
|
-
$[
|
|
2600
|
-
} else t12 = $[
|
|
2517
|
+
$[21] = t12;
|
|
2518
|
+
} else t12 = $[21];
|
|
2601
2519
|
const t13 = queue.stats.active > 0 && "text-yellow-500";
|
|
2602
2520
|
let t14;
|
|
2603
|
-
if ($[
|
|
2521
|
+
if ($[22] !== t13) {
|
|
2604
2522
|
t14 = cn("font-mono", t13);
|
|
2605
|
-
$[
|
|
2606
|
-
$[
|
|
2607
|
-
} else t14 = $[
|
|
2523
|
+
$[22] = t13;
|
|
2524
|
+
$[23] = t14;
|
|
2525
|
+
} else t14 = $[23];
|
|
2608
2526
|
let t15;
|
|
2609
|
-
if ($[
|
|
2527
|
+
if ($[24] !== queue.stats.active || $[25] !== t14) {
|
|
2610
2528
|
t15 = /* @__PURE__ */ jsxs("div", {
|
|
2611
2529
|
className: "flex flex-col",
|
|
2612
2530
|
children: [t12, /* @__PURE__ */ jsx("span", {
|
|
@@ -2614,27 +2532,27 @@ const QueueItem = memo((t0) => {
|
|
|
2614
2532
|
children: queue.stats.active
|
|
2615
2533
|
})]
|
|
2616
2534
|
});
|
|
2617
|
-
$[
|
|
2618
|
-
$[
|
|
2619
|
-
$[
|
|
2620
|
-
} else t15 = $[
|
|
2535
|
+
$[24] = queue.stats.active;
|
|
2536
|
+
$[25] = t14;
|
|
2537
|
+
$[26] = t15;
|
|
2538
|
+
} else t15 = $[26];
|
|
2621
2539
|
let t16;
|
|
2622
|
-
if ($[
|
|
2540
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2623
2541
|
t16 = /* @__PURE__ */ jsx("span", {
|
|
2624
2542
|
className: "text-muted-foreground",
|
|
2625
2543
|
children: "Done"
|
|
2626
2544
|
});
|
|
2627
|
-
$[
|
|
2628
|
-
} else t16 = $[
|
|
2545
|
+
$[27] = t16;
|
|
2546
|
+
} else t16 = $[27];
|
|
2629
2547
|
const t17 = queue.stats.completed > 0 && "text-green-500";
|
|
2630
2548
|
let t18;
|
|
2631
|
-
if ($[
|
|
2549
|
+
if ($[28] !== t17) {
|
|
2632
2550
|
t18 = cn("font-mono", t17);
|
|
2633
|
-
$[
|
|
2634
|
-
$[
|
|
2635
|
-
} else t18 = $[
|
|
2551
|
+
$[28] = t17;
|
|
2552
|
+
$[29] = t18;
|
|
2553
|
+
} else t18 = $[29];
|
|
2636
2554
|
let t19;
|
|
2637
|
-
if ($[
|
|
2555
|
+
if ($[30] !== queue.stats.completed || $[31] !== t18) {
|
|
2638
2556
|
t19 = /* @__PURE__ */ jsxs("div", {
|
|
2639
2557
|
className: "flex flex-col",
|
|
2640
2558
|
children: [t16, /* @__PURE__ */ jsx("span", {
|
|
@@ -2642,27 +2560,27 @@ const QueueItem = memo((t0) => {
|
|
|
2642
2560
|
children: queue.stats.completed
|
|
2643
2561
|
})]
|
|
2644
2562
|
});
|
|
2645
|
-
$[
|
|
2646
|
-
$[
|
|
2647
|
-
$[
|
|
2648
|
-
} else t19 = $[
|
|
2563
|
+
$[30] = queue.stats.completed;
|
|
2564
|
+
$[31] = t18;
|
|
2565
|
+
$[32] = t19;
|
|
2566
|
+
} else t19 = $[32];
|
|
2649
2567
|
let t20;
|
|
2650
|
-
if ($[
|
|
2568
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2651
2569
|
t20 = /* @__PURE__ */ jsx("span", {
|
|
2652
2570
|
className: "text-muted-foreground",
|
|
2653
2571
|
children: "Failed"
|
|
2654
2572
|
});
|
|
2655
|
-
$[
|
|
2656
|
-
} else t20 = $[
|
|
2573
|
+
$[33] = t20;
|
|
2574
|
+
} else t20 = $[33];
|
|
2657
2575
|
const t21 = queue.stats.failed > 0 && "text-destructive";
|
|
2658
2576
|
let t22;
|
|
2659
|
-
if ($[
|
|
2577
|
+
if ($[34] !== t21) {
|
|
2660
2578
|
t22 = cn("font-mono", t21);
|
|
2661
|
-
$[
|
|
2662
|
-
$[
|
|
2663
|
-
} else t22 = $[
|
|
2579
|
+
$[34] = t21;
|
|
2580
|
+
$[35] = t22;
|
|
2581
|
+
} else t22 = $[35];
|
|
2664
2582
|
let t23;
|
|
2665
|
-
if ($[
|
|
2583
|
+
if ($[36] !== queue.stats.failed || $[37] !== t22) {
|
|
2666
2584
|
t23 = /* @__PURE__ */ jsxs("div", {
|
|
2667
2585
|
className: "flex flex-col",
|
|
2668
2586
|
children: [t20, /* @__PURE__ */ jsx("span", {
|
|
@@ -2670,12 +2588,12 @@ const QueueItem = memo((t0) => {
|
|
|
2670
2588
|
children: queue.stats.failed
|
|
2671
2589
|
})]
|
|
2672
2590
|
});
|
|
2673
|
-
$[
|
|
2674
|
-
$[
|
|
2675
|
-
$[
|
|
2676
|
-
} else t23 = $[
|
|
2591
|
+
$[36] = queue.stats.failed;
|
|
2592
|
+
$[37] = t22;
|
|
2593
|
+
$[38] = t23;
|
|
2594
|
+
} else t23 = $[38];
|
|
2677
2595
|
let t24;
|
|
2678
|
-
if ($[
|
|
2596
|
+
if ($[39] !== t11 || $[40] !== t15 || $[41] !== t19 || $[42] !== t23) {
|
|
2679
2597
|
t24 = /* @__PURE__ */ jsxs("div", {
|
|
2680
2598
|
className: "grid grid-cols-4 gap-1 text-xs",
|
|
2681
2599
|
children: [
|
|
@@ -2685,14 +2603,14 @@ const QueueItem = memo((t0) => {
|
|
|
2685
2603
|
t23
|
|
2686
2604
|
]
|
|
2687
2605
|
});
|
|
2688
|
-
$[
|
|
2689
|
-
$[
|
|
2690
|
-
$[
|
|
2691
|
-
$[
|
|
2692
|
-
$[
|
|
2693
|
-
} else t24 = $[
|
|
2606
|
+
$[39] = t11;
|
|
2607
|
+
$[40] = t15;
|
|
2608
|
+
$[41] = t19;
|
|
2609
|
+
$[42] = t23;
|
|
2610
|
+
$[43] = t24;
|
|
2611
|
+
} else t24 = $[43];
|
|
2694
2612
|
let t25;
|
|
2695
|
-
if ($[
|
|
2613
|
+
if ($[44] !== queue.stats.delayed || $[45] !== totalJobs) {
|
|
2696
2614
|
t25 = (queue.stats.delayed > 0 || totalJobs > 0) && /* @__PURE__ */ jsxs("div", {
|
|
2697
2615
|
className: "flex gap-2 mt-1 text-xs text-muted-foreground",
|
|
2698
2616
|
children: [queue.stats.delayed > 0 && /* @__PURE__ */ jsxs("span", { children: [queue.stats.delayed, " delayed"] }), totalJobs > 0 && /* @__PURE__ */ jsxs("span", {
|
|
@@ -2700,12 +2618,12 @@ const QueueItem = memo((t0) => {
|
|
|
2700
2618
|
children: [totalJobs, " pending"]
|
|
2701
2619
|
})]
|
|
2702
2620
|
});
|
|
2703
|
-
$[
|
|
2704
|
-
$[
|
|
2705
|
-
$[
|
|
2706
|
-
} else t25 = $[
|
|
2621
|
+
$[44] = queue.stats.delayed;
|
|
2622
|
+
$[45] = totalJobs;
|
|
2623
|
+
$[46] = t25;
|
|
2624
|
+
} else t25 = $[46];
|
|
2707
2625
|
let t26;
|
|
2708
|
-
if ($[
|
|
2626
|
+
if ($[47] !== onClick || $[48] !== t2 || $[49] !== t24 || $[50] !== t25 || $[51] !== t7) {
|
|
2709
2627
|
t26 = /* @__PURE__ */ jsxs("button", {
|
|
2710
2628
|
type: "button",
|
|
2711
2629
|
onClick,
|
|
@@ -2716,22 +2634,18 @@ const QueueItem = memo((t0) => {
|
|
|
2716
2634
|
t25
|
|
2717
2635
|
]
|
|
2718
2636
|
});
|
|
2719
|
-
$[
|
|
2720
|
-
$[
|
|
2721
|
-
$[
|
|
2722
|
-
$[
|
|
2723
|
-
$[
|
|
2724
|
-
$[
|
|
2725
|
-
} else t26 = $[
|
|
2637
|
+
$[47] = onClick;
|
|
2638
|
+
$[48] = t2;
|
|
2639
|
+
$[49] = t24;
|
|
2640
|
+
$[50] = t25;
|
|
2641
|
+
$[51] = t7;
|
|
2642
|
+
$[52] = t26;
|
|
2643
|
+
} else t26 = $[52];
|
|
2726
2644
|
return t26;
|
|
2727
2645
|
});
|
|
2728
2646
|
QueueItem.displayName = "QueueItem";
|
|
2729
2647
|
const QueueList = memo(() => {
|
|
2730
|
-
const $ = c(
|
|
2731
|
-
if ($[0] !== "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c") {
|
|
2732
|
-
for (let $i = 0; $i < 38; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2733
|
-
$[0] = "44e6229799ef8371f1e191c6f3e3ef70ea83c9489840337cf1d87e846b1bcc7c";
|
|
2734
|
-
}
|
|
2648
|
+
const $ = c(37);
|
|
2735
2649
|
const queues = useBullMQStore(_temp$1);
|
|
2736
2650
|
const selectedQueue = useBullMQStore(_temp2$1);
|
|
2737
2651
|
const setSelectedQueue = useBullMQStore(_temp3);
|
|
@@ -2744,38 +2658,38 @@ const QueueList = memo(() => {
|
|
|
2744
2658
|
break bb0;
|
|
2745
2659
|
}
|
|
2746
2660
|
let t1$1;
|
|
2747
|
-
if ($[
|
|
2661
|
+
if ($[0] !== queues || $[1] !== searchQuery) {
|
|
2748
2662
|
const query = searchQuery.toLowerCase();
|
|
2749
2663
|
t1$1 = queues.filter((q) => q.name.toLowerCase().includes(query) || q.displayName.toLowerCase().includes(query));
|
|
2750
|
-
$[
|
|
2751
|
-
$[
|
|
2752
|
-
$[
|
|
2753
|
-
} else t1$1 = $[
|
|
2664
|
+
$[0] = queues;
|
|
2665
|
+
$[1] = searchQuery;
|
|
2666
|
+
$[2] = t1$1;
|
|
2667
|
+
} else t1$1 = $[2];
|
|
2754
2668
|
t0 = t1$1;
|
|
2755
2669
|
}
|
|
2756
2670
|
const filteredQueues = t0;
|
|
2757
2671
|
let t1;
|
|
2758
|
-
if ($[
|
|
2672
|
+
if ($[3] !== filteredQueues) {
|
|
2759
2673
|
t1 = filteredQueues.filter(_temp6);
|
|
2760
|
-
$[
|
|
2761
|
-
$[
|
|
2762
|
-
} else t1 = $[
|
|
2674
|
+
$[3] = filteredQueues;
|
|
2675
|
+
$[4] = t1;
|
|
2676
|
+
} else t1 = $[4];
|
|
2763
2677
|
const regularQueues = t1;
|
|
2764
2678
|
let t2;
|
|
2765
|
-
if ($[
|
|
2679
|
+
if ($[5] !== filteredQueues) {
|
|
2766
2680
|
t2 = filteredQueues.filter(_temp7);
|
|
2767
|
-
$[
|
|
2768
|
-
$[
|
|
2769
|
-
} else t2 = $[
|
|
2681
|
+
$[5] = filteredQueues;
|
|
2682
|
+
$[6] = t2;
|
|
2683
|
+
} else t2 = $[6];
|
|
2770
2684
|
const dlqQueues = t2;
|
|
2771
2685
|
let t3;
|
|
2772
|
-
if ($[
|
|
2686
|
+
if ($[7] !== setSearchQuery) {
|
|
2773
2687
|
t3 = (e) => setSearchQuery(e.target.value);
|
|
2774
|
-
$[
|
|
2775
|
-
$[
|
|
2776
|
-
} else t3 = $[
|
|
2688
|
+
$[7] = setSearchQuery;
|
|
2689
|
+
$[8] = t3;
|
|
2690
|
+
} else t3 = $[8];
|
|
2777
2691
|
let t4;
|
|
2778
|
-
if ($[
|
|
2692
|
+
if ($[9] !== searchQuery || $[10] !== t3) {
|
|
2779
2693
|
t4 = /* @__PURE__ */ jsx(Input, {
|
|
2780
2694
|
variant: "shade",
|
|
2781
2695
|
value: searchQuery,
|
|
@@ -2783,27 +2697,27 @@ const QueueList = memo(() => {
|
|
|
2783
2697
|
className: "px-9! font-medium text-sm",
|
|
2784
2698
|
placeholder: "Search queues..."
|
|
2785
2699
|
});
|
|
2786
|
-
$[
|
|
2787
|
-
$[
|
|
2788
|
-
$[
|
|
2789
|
-
} else t4 = $[
|
|
2700
|
+
$[9] = searchQuery;
|
|
2701
|
+
$[10] = t3;
|
|
2702
|
+
$[11] = t4;
|
|
2703
|
+
} else t4 = $[11];
|
|
2790
2704
|
let t5;
|
|
2791
|
-
if ($[
|
|
2705
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2792
2706
|
t5 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
|
|
2793
|
-
$[
|
|
2794
|
-
} else t5 = $[
|
|
2707
|
+
$[12] = t5;
|
|
2708
|
+
} else t5 = $[12];
|
|
2795
2709
|
let t6;
|
|
2796
|
-
if ($[
|
|
2710
|
+
if ($[13] !== searchQuery || $[14] !== setSearchQuery) {
|
|
2797
2711
|
t6 = searchQuery && /* @__PURE__ */ jsx(X, {
|
|
2798
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",
|
|
2799
2713
|
onClick: () => setSearchQuery("")
|
|
2800
2714
|
});
|
|
2801
|
-
$[
|
|
2802
|
-
$[
|
|
2803
|
-
$[
|
|
2804
|
-
} else t6 = $[
|
|
2715
|
+
$[13] = searchQuery;
|
|
2716
|
+
$[14] = setSearchQuery;
|
|
2717
|
+
$[15] = t6;
|
|
2718
|
+
} else t6 = $[15];
|
|
2805
2719
|
let t7;
|
|
2806
|
-
if ($[
|
|
2720
|
+
if ($[16] !== t4 || $[17] !== t6) {
|
|
2807
2721
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
2808
2722
|
className: "p-2 border-b border-border",
|
|
2809
2723
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -2815,12 +2729,12 @@ const QueueList = memo(() => {
|
|
|
2815
2729
|
]
|
|
2816
2730
|
})
|
|
2817
2731
|
});
|
|
2818
|
-
$[
|
|
2819
|
-
$[
|
|
2820
|
-
$[
|
|
2821
|
-
} else t7 = $[
|
|
2732
|
+
$[16] = t4;
|
|
2733
|
+
$[17] = t6;
|
|
2734
|
+
$[18] = t7;
|
|
2735
|
+
} else t7 = $[18];
|
|
2822
2736
|
let t8;
|
|
2823
|
-
if ($[
|
|
2737
|
+
if ($[19] !== regularQueues || $[20] !== selectedQueue?.name || $[21] !== setSelectedQueue) {
|
|
2824
2738
|
t8 = regularQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
2825
2739
|
className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-muted/30",
|
|
2826
2740
|
children: [
|
|
@@ -2833,13 +2747,13 @@ const QueueList = memo(() => {
|
|
|
2833
2747
|
isSelected: selectedQueue?.name === queue.name,
|
|
2834
2748
|
onClick: () => setSelectedQueue(queue)
|
|
2835
2749
|
}, queue.name))] });
|
|
2836
|
-
$[
|
|
2837
|
-
$[
|
|
2838
|
-
$[
|
|
2839
|
-
$[
|
|
2840
|
-
} else t8 = $[
|
|
2750
|
+
$[19] = regularQueues;
|
|
2751
|
+
$[20] = selectedQueue?.name;
|
|
2752
|
+
$[21] = setSelectedQueue;
|
|
2753
|
+
$[22] = t8;
|
|
2754
|
+
} else t8 = $[22];
|
|
2841
2755
|
let t9;
|
|
2842
|
-
if ($[
|
|
2756
|
+
if ($[23] !== dlqQueues || $[24] !== selectedQueue?.name || $[25] !== setSelectedQueue) {
|
|
2843
2757
|
t9 = dlqQueues.length > 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
2844
2758
|
className: "px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wider bg-destructive/10",
|
|
2845
2759
|
children: [
|
|
@@ -2852,23 +2766,23 @@ const QueueList = memo(() => {
|
|
|
2852
2766
|
isSelected: selectedQueue?.name === queue_0.name,
|
|
2853
2767
|
onClick: () => setSelectedQueue(queue_0)
|
|
2854
2768
|
}, queue_0.name))] });
|
|
2855
|
-
$[
|
|
2856
|
-
$[
|
|
2857
|
-
$[
|
|
2858
|
-
$[
|
|
2859
|
-
} else t9 = $[
|
|
2769
|
+
$[23] = dlqQueues;
|
|
2770
|
+
$[24] = selectedQueue?.name;
|
|
2771
|
+
$[25] = setSelectedQueue;
|
|
2772
|
+
$[26] = t9;
|
|
2773
|
+
} else t9 = $[26];
|
|
2860
2774
|
let t10;
|
|
2861
|
-
if ($[
|
|
2775
|
+
if ($[27] !== filteredQueues.length || $[28] !== searchQuery) {
|
|
2862
2776
|
t10 = filteredQueues.length === 0 && /* @__PURE__ */ jsx("div", {
|
|
2863
2777
|
className: "p-4 text-center text-muted-foreground text-sm",
|
|
2864
2778
|
children: searchQuery ? "No queues match your search" : "No queues found"
|
|
2865
2779
|
});
|
|
2866
|
-
$[
|
|
2867
|
-
$[
|
|
2868
|
-
$[
|
|
2869
|
-
} else t10 = $[
|
|
2780
|
+
$[27] = filteredQueues.length;
|
|
2781
|
+
$[28] = searchQuery;
|
|
2782
|
+
$[29] = t10;
|
|
2783
|
+
} else t10 = $[29];
|
|
2870
2784
|
let t11;
|
|
2871
|
-
if ($[
|
|
2785
|
+
if ($[30] !== t10 || $[31] !== t8 || $[32] !== t9) {
|
|
2872
2786
|
t11 = /* @__PURE__ */ jsxs("div", {
|
|
2873
2787
|
className: "flex-1 overflow-auto",
|
|
2874
2788
|
children: [
|
|
@@ -2877,21 +2791,21 @@ const QueueList = memo(() => {
|
|
|
2877
2791
|
t10
|
|
2878
2792
|
]
|
|
2879
2793
|
});
|
|
2880
|
-
$[
|
|
2881
|
-
$[
|
|
2882
|
-
$[
|
|
2883
|
-
$[
|
|
2884
|
-
} else t11 = $[
|
|
2794
|
+
$[30] = t10;
|
|
2795
|
+
$[31] = t8;
|
|
2796
|
+
$[32] = t9;
|
|
2797
|
+
$[33] = t11;
|
|
2798
|
+
} else t11 = $[33];
|
|
2885
2799
|
let t12;
|
|
2886
|
-
if ($[
|
|
2800
|
+
if ($[34] !== t11 || $[35] !== t7) {
|
|
2887
2801
|
t12 = /* @__PURE__ */ jsxs("div", {
|
|
2888
2802
|
className: "flex flex-col h-full",
|
|
2889
2803
|
children: [t7, t11]
|
|
2890
2804
|
});
|
|
2891
|
-
$[
|
|
2892
|
-
$[
|
|
2893
|
-
$[
|
|
2894
|
-
} else t12 = $[
|
|
2805
|
+
$[34] = t11;
|
|
2806
|
+
$[35] = t7;
|
|
2807
|
+
$[36] = t12;
|
|
2808
|
+
} else t12 = $[36];
|
|
2895
2809
|
return t12;
|
|
2896
2810
|
});
|
|
2897
2811
|
QueueList.displayName = "QueueList";
|
|
@@ -2920,17 +2834,13 @@ function _temp7(q_1) {
|
|
|
2920
2834
|
//#endregion
|
|
2921
2835
|
//#region src/components/queues-page.tsx
|
|
2922
2836
|
const QueuesPageContent = memo(() => {
|
|
2923
|
-
const $ = c(
|
|
2924
|
-
if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
|
|
2925
|
-
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2926
|
-
$[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
|
|
2927
|
-
}
|
|
2837
|
+
const $ = c(11);
|
|
2928
2838
|
const selectedQueue = useBullMQStore(_temp);
|
|
2929
2839
|
const updateSelectedQueueStats = useBullMQStore(_temp2);
|
|
2930
2840
|
const { queues } = useQueues();
|
|
2931
2841
|
let t0;
|
|
2932
2842
|
let t1;
|
|
2933
|
-
if ($[
|
|
2843
|
+
if ($[0] !== queues || $[1] !== selectedQueue || $[2] !== updateSelectedQueueStats) {
|
|
2934
2844
|
t0 = () => {
|
|
2935
2845
|
if (selectedQueue) {
|
|
2936
2846
|
const updatedQueue = queues.find((q) => q.name === selectedQueue.name);
|
|
@@ -2942,40 +2852,40 @@ const QueuesPageContent = memo(() => {
|
|
|
2942
2852
|
selectedQueue,
|
|
2943
2853
|
updateSelectedQueueStats
|
|
2944
2854
|
];
|
|
2945
|
-
$[
|
|
2946
|
-
$[
|
|
2947
|
-
$[
|
|
2948
|
-
$[
|
|
2949
|
-
$[
|
|
2855
|
+
$[0] = queues;
|
|
2856
|
+
$[1] = selectedQueue;
|
|
2857
|
+
$[2] = updateSelectedQueueStats;
|
|
2858
|
+
$[3] = t0;
|
|
2859
|
+
$[4] = t1;
|
|
2950
2860
|
} else {
|
|
2951
|
-
t0 = $[
|
|
2952
|
-
t1 = $[
|
|
2861
|
+
t0 = $[3];
|
|
2862
|
+
t1 = $[4];
|
|
2953
2863
|
}
|
|
2954
2864
|
useEffect(t0, t1);
|
|
2955
2865
|
let t2;
|
|
2956
|
-
if ($[
|
|
2866
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2957
2867
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
2958
2868
|
className: "border-r border-border overflow-hidden",
|
|
2959
2869
|
children: /* @__PURE__ */ jsx(QueueList, {})
|
|
2960
2870
|
});
|
|
2961
|
-
$[
|
|
2962
|
-
} else t2 = $[
|
|
2871
|
+
$[5] = t2;
|
|
2872
|
+
} else t2 = $[5];
|
|
2963
2873
|
let t3;
|
|
2964
|
-
if ($[
|
|
2874
|
+
if ($[6] !== selectedQueue?.isDLQ) {
|
|
2965
2875
|
t3 = /* @__PURE__ */ jsx("div", {
|
|
2966
2876
|
className: "overflow-hidden",
|
|
2967
2877
|
children: selectedQueue?.isDLQ ? /* @__PURE__ */ jsx(DLQPanel, {}) : /* @__PURE__ */ jsx(QueueDetail, {})
|
|
2968
2878
|
});
|
|
2969
|
-
$[
|
|
2970
|
-
$[
|
|
2971
|
-
} else t3 = $[
|
|
2879
|
+
$[6] = selectedQueue?.isDLQ;
|
|
2880
|
+
$[7] = t3;
|
|
2881
|
+
} else t3 = $[7];
|
|
2972
2882
|
let t4;
|
|
2973
|
-
if ($[
|
|
2883
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2974
2884
|
t4 = /* @__PURE__ */ jsx(JobDetail, {});
|
|
2975
|
-
$[
|
|
2976
|
-
} else t4 = $[
|
|
2885
|
+
$[8] = t4;
|
|
2886
|
+
} else t4 = $[8];
|
|
2977
2887
|
let t5;
|
|
2978
|
-
if ($[
|
|
2888
|
+
if ($[9] !== t3) {
|
|
2979
2889
|
t5 = /* @__PURE__ */ jsxs("div", {
|
|
2980
2890
|
className: "grid grid-cols-[300px_1fr] h-full overflow-hidden",
|
|
2981
2891
|
children: [
|
|
@@ -2984,23 +2894,19 @@ const QueuesPageContent = memo(() => {
|
|
|
2984
2894
|
t4
|
|
2985
2895
|
]
|
|
2986
2896
|
});
|
|
2987
|
-
$[
|
|
2988
|
-
$[
|
|
2989
|
-
} else t5 = $[
|
|
2897
|
+
$[9] = t3;
|
|
2898
|
+
$[10] = t5;
|
|
2899
|
+
} else t5 = $[10];
|
|
2990
2900
|
return t5;
|
|
2991
2901
|
});
|
|
2992
2902
|
QueuesPageContent.displayName = "QueuesPageContent";
|
|
2993
2903
|
const QueuesPage = memo(() => {
|
|
2994
|
-
const $ = c(
|
|
2995
|
-
if ($[0] !== "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492") {
|
|
2996
|
-
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2997
|
-
$[0] = "d90f8688a2f661493c4a0312f1c954fe541dc3821309a6ba650a56e59fcac492";
|
|
2998
|
-
}
|
|
2904
|
+
const $ = c(1);
|
|
2999
2905
|
let t0;
|
|
3000
|
-
if ($[
|
|
2906
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
3001
2907
|
t0 = /* @__PURE__ */ jsx(QueryProvider, { children: /* @__PURE__ */ jsx(QueuesPageContent, {}) });
|
|
3002
|
-
$[
|
|
3003
|
-
} else t0 = $[
|
|
2908
|
+
$[0] = t0;
|
|
2909
|
+
} else t0 = $[0];
|
|
3004
2910
|
return t0;
|
|
3005
2911
|
});
|
|
3006
2912
|
QueuesPage.displayName = "QueuesPage";
|