mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-21 05:00:56 +00:00
feat(infisical-pg): completed secret rollback
This commit is contained in:
@@ -18,7 +18,7 @@ export type TQueueJobTypes = {
|
||||
|
||||
export type TQueueServiceFactory = ReturnType<typeof queueServiceFactory>;
|
||||
export const queueServiceFactory = (redisUrl: string) => {
|
||||
const connection = new Redis(redisUrl);
|
||||
const connection = new Redis(redisUrl, { maxRetriesPerRequest: null });
|
||||
const queueContainer: Record<
|
||||
QueueName,
|
||||
Queue<TQueueJobTypes[QueueName]["payload"], void, TQueueJobTypes[QueueName]["name"]>
|
||||
@@ -46,7 +46,7 @@ export const queueServiceFactory = (redisUrl: string) => {
|
||||
TQueueJobTypes[T]["payload"],
|
||||
void,
|
||||
TQueueJobTypes[T]["name"]
|
||||
>(name, jobFn);
|
||||
>(name, jobFn, { connection });
|
||||
};
|
||||
|
||||
const listen = async <
|
||||
|
||||
Reference in New Issue
Block a user