X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerOptions.html;h=ec683bb401d65e9bb98bf62518ed5ca746116fd4;hb=eb40b0f33d4355d39c4172809ecd8fe339f6fd79;hp=c1e7a44253b83fd57b4a4e84024f96a6e879c39f;hpb=a3294554408b42a4df2e37eb69f9c8a554a0c2f3;p=poolifier.git diff --git a/docs/interfaces/WorkerOptions.html b/docs/interfaces/WorkerOptions.html index c1e7a442..ec683bb4 100644 --- a/docs/interfaces/WorkerOptions.html +++ b/docs/interfaces/WorkerOptions.html @@ -1,8 +1,8 @@ -
Optional
killkillBehavior
dictates if your worker will be deleted in case a task is active on it.
Options for workers.
+Optional
killkillBehavior
dictates if your worker will be deleted in case a task is active on it.
currentTime - lastActiveTime
is greater than maxInactiveTime
but a task is still executing or queued, then the worker won't be deleted.currentTime - lastActiveTime
is greater than maxInactiveTime
but a task is still executing or queued, then the worker will be deleted.This option only apply to the newly created workers.
KillBehaviors.SOFT
-Optional
killThe function to call when a worker is killed.
+Optional
killThe function to call when a worker is killed.
() => {}
Optional
maxMaximum waiting time in milliseconds for tasks on newly created workers. It must be greater or equal than 5.
+Optional
maxMaximum waiting time in milliseconds for tasks on newly created workers. It must be greater or equal than 5.
After this time, newly created workers will be terminated. The last active time of your worker will be updated when it terminates a task.
60000
-Generated using TypeDoc
Options for workers.
-