Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/real-queue/lib/queue/server/serverJobToPromise"

Index

Variables

Const SUCCESSFUL_SERVER_JOBS

SUCCESSFUL_SERVER_JOBS: number[] = []

Memorize all executed server jobs to avoid multiple executions. Why: We have created a task for each job, but on server side we are executing jobs iteratively until max execution time exceeded.

Simply said: One network request could potentially execute multiple jobs.

Functions

convertServerJobToPromise

  • convertServerJobToPromise(queue: ReturnType<typeof getGlobalQueue>, job: Job, tryIds: number[]): Task[]
  • Convert a server job to promise.

    Parameters

    • queue: ReturnType<typeof getGlobalQueue>
    • job: Job
    • tryIds: number[]

      All the Job IDs which should be also be tried with this single request

    Returns Task[]

Generated using TypeDoc