v0.4.0
Pre-release
Pre-release
What's Changed
Changed
- Support per task function(s) priority and worker choice strategy definition
via a task function object:
{ taskFunction: (data?: Data) => Response | Promise<Response>, priority?: number, strategy?: WorkerChoiceStrategy }
. - Add priority queue based tasks queueing. One priority queue is divided into
prioritized buckets to avoid queued tasks starvation under load. - BREAKING CHANGE:
listTaskFunctionNames()
tolistTaskFunctionsProperties()
in pool and worker API returning registered task functions properties. - BREAKING CHANGE:
strategy
field in pool information renamed to
defaultStrategy
.
Fixed
- Ensure dynamic worker node are initialized with sensible worker node usage
default values to avoid worker choice strategies biased decisions.
Full Changelog: v0.3.17...v0.4.0