Review funkt
This commit is contained in:
28
node_modules/bullmq/dist/esm/interfaces/script-queue-context.d.ts
generated
vendored
Normal file
28
node_modules/bullmq/dist/esm/interfaces/script-queue-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import { RedisClient } from './connection';
|
||||
import { QueueBaseOptions } from './queue-options';
|
||||
import { KeysMap } from '../classes/queue-keys';
|
||||
import { DatabaseType } from '../types/database-type';
|
||||
export interface ScriptQueueContext {
|
||||
opts: QueueBaseOptions;
|
||||
toKey: (type: string) => string;
|
||||
keys: KeysMap;
|
||||
closing: Promise<void> | undefined;
|
||||
/**
|
||||
* Returns a promise that resolves to a redis client. Normally used only by subclasses.
|
||||
*/
|
||||
get client(): Promise<RedisClient>;
|
||||
/**
|
||||
* Optional dedicated blocking connection used by the backend's
|
||||
* `waitForJob` primitive. Only workers provide it; other contexts (e.g. a
|
||||
* plain Queue) leave it undefined since they never block waiting for jobs.
|
||||
*/
|
||||
blockingClient?: Promise<RedisClient>;
|
||||
/**
|
||||
* Returns the database type of the Redis instance the client is connected to,
|
||||
*/
|
||||
get databaseType(): DatabaseType;
|
||||
/**
|
||||
* Returns the version of the Redis instance the client is connected to,
|
||||
*/
|
||||
get redisVersion(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user