Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Producer

Implements

  • QueueProducer

Index

Constructors

  • new Producer(kernel: Kernel, pool: Pool, session: string): Producer

Methods

  • deleteJob(context: LogContext, key: string): Promise<void>
  • summary

    Delete a job from the queue using its job key

    Parameters

    • context: LogContext

      execution context

    • key: string

      job key to delete

    Returns Promise<void>

  • getLastExecutionEvent(logContext: LogContext, originator: string): Promise<null | ExecuteContract>
  • summary

    Get the last execution event given an originator

    function

    Parameters

    • logContext: LogContext

      log context

    • originator: string

      originator card id

    Returns Promise<null | ExecuteContract>

    last execution event

  • initialize(logContext: LogContext): Promise<void>
  • summary

    Initialize the queue producer

    function

    Parameters

    • logContext: LogContext

      log context

    Returns Promise<void>

  • makeWorkerUtils(logContext: LogContext, retries?: number): Promise<WorkerUtils>
  • summary

    Make and return Graphile worker utils instance

    function
    example
    const workerUtils = await this.makeWorkerUtils(context);
    

    Parameters

    • logContext: LogContext

      log context

    • retries: number = GRAPHILE_RETRIES

      number of times to retry Graphile worker initialization

    Returns Promise<WorkerUtils>

    Graphile worker utils instance

Generated using TypeDoc