Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/real-queue/lib/queue/restoreFromLocalStorage"

Index

Variables

Const LOCAL_STORAGE_KEY_RESTORE_JOBS

LOCAL_STORAGE_KEY_RESTORE_JOBS: "real-queue-restore-jobs" = "real-queue-restore-jobs"

Allows to restore jobs from the local storage. This is helpful especially when the jobs got locked by the server and could not be "restored the next time".

Functions

restoreJobsFromLocalStorage

  • restoreJobsFromLocalStorage(queueClass?: RealQueueClass): Promise<boolean>
  • Fetch the next list of jobs so we can populate to our queue.

    Parameters

    • Default value queueClass: RealQueueClass = getGlobalQueue().enqueueHandler()

    Returns Promise<boolean>

Generated using TypeDoc