Skip to content

v0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jerome-benoit jerome-benoit released this 07 May 13:53
· 255 commits to master since this release
fe33d5b

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() to listTaskFunctionsProperties()
    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