Add WRR worker choice strategy
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index edefcfaac429d8c0d24fa897300650d141ab7f3c..359cfb948c6334dc507a3d0894149790aef584f9 100644 (file)
@@ -11,7 +11,11 @@ export const WorkerChoiceStrategies = Object.freeze({
   /**
    * Less recently used worker selection strategy.
    */
-  LESS_RECENTLY_USED: 'LESS_RECENTLY_USED'
+  LESS_RECENTLY_USED: 'LESS_RECENTLY_USED',
+  /**
+   * Weighted round robin worker selection strategy.
+   */
+  WEIGHTED_ROUND_ROBIN: 'WEIGHTED_ROUND_ROBIN'
 } as const)
 
 /**