UNPKG

@mcma/azure-queue-worker-invoker

Version:

Invoke MCMA Worker functions on Azure using Azure Queue Storage

12 lines (11 loc) 607 B
import { TokenCredential } from "@azure/identity"; import { StorageSharedKeyCredential, AnonymousCredential } from "@azure/storage-queue"; import { WorkerInvoker, WorkerRequestProperties } from "@mcma/worker-invoker"; export interface QueueWorkerInvokerConfig { credentials?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential; } export declare class QueueWorkerInvoker extends WorkerInvoker { private readonly config?; constructor(config?: QueueWorkerInvokerConfig); protected invokeWorker(workerFunctionId: string, workerRequest: WorkerRequestProperties): Promise<void>; }