X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerOptions.html;h=4a6dc82360c47bc4c65e653b30866bce38623694;hb=4d8bf9e40e07bd233be4494fda4e4270fdd8a355;hp=05728453ea673f95a59a22df4eab1ecea950aaa4;hpb=3bd6a82e43e11294af91bbd19647944ac740169e;p=poolifier.git diff --git a/docs/interfaces/WorkerOptions.html b/docs/interfaces/WorkerOptions.html index 05728453..4a6dc823 100644 --- a/docs/interfaces/WorkerOptions.html +++ b/docs/interfaces/WorkerOptions.html @@ -23,7 +23,7 @@ +
  • Defined in src/worker/worker-options.ts:38
  • @@ -39,16 +39,16 @@

    Properties

    -
    async?: boolean
    +
    async?: boolean

    Whether your worker will perform asynchronous or not.

    Default Value

    false

    +
  • Defined in src/worker/worker-options.ts:57
  • -
    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.

    • SOFT: If currentTime - lastActiveTime is greater than maxInactiveTime but a task is still running, then the worker won't be deleted.
    • @@ -59,10 +59,10 @@

      Default Value

      KillBehaviors.SOFT

    +
  • Defined in src/worker/worker-options.ts:68
  • -
    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 +75,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