X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerOptions.html;h=954da0f6297c2dedb40a4474eac8b78131a07378;hb=6c7727ff79d651547ca10f44504d61e5073f07da;hp=05728453ea673f95a59a22df4eab1ecea950aaa4;hpb=3bd6a82e43e11294af91bbd19647944ac740169e;p=poolifier.git diff --git a/docs/interfaces/WorkerOptions.html b/docs/interfaces/WorkerOptions.html index 05728453..954da0f6 100644 --- a/docs/interfaces/WorkerOptions.html +++ b/docs/interfaces/WorkerOptions.html @@ -23,7 +23,7 @@ +
  • Defined in src/worker/worker-options.ts:38
  • @@ -31,24 +31,26 @@

    Properties

    - -
    async?: boolean
    + +
    async?: boolean

    Whether your worker will perform asynchronous or not.

    Default Value

    false

    + +

    Deprecated

    This option will be removed in the next major version.

    +
  • Defined in src/worker/worker-options.ts:58
  • -
    killBehavior?: "SOFT" | "HARD"
    +
    killBehavior?: "SOFT" | "HARD"

    killBehavior dictates if your async unit (worker/process) will be deleted in case that a task is active on it.

    +
  • Defined in src/worker/worker-options.ts:69
  • -
    maxInactiveTime?: number
    +
    maxInactiveTime?: number

    Maximum waiting time in milliseconds for tasks.

    After this time, newly created workers will be terminated. The last active time of your worker unit will be updated when a task is submitted to a worker or when a worker terminate a task.

    @@ -75,7 +77,7 @@ when this timeout expires your tasks is interrupted and the worker is killed if

    Default Value

    60000

    +
  • Defined in src/worker/worker-options.ts:51