/**
* Less recently used worker selection strategy.
*/
- LESS_RECENTLY_USED: 'LESS_RECENTLY_USED'
+ LESS_RECENTLY_USED: 'LESS_RECENTLY_USED',
+ /**
+ * Fair share worker selection strategy.
+ */
+ FAIR_SHARE: 'FAIR_SHARE',
+ /**
+ * Weighted round robin worker selection strategy.
+ */
+ WEIGHTED_ROUND_ROBIN: 'WEIGHTED_ROUND_ROBIN'
} as const)
/**
*/
export type WorkerChoiceStrategy = keyof typeof WorkerChoiceStrategies
+/**
+ * Tasks usage statistics requirements.
+ */
+export type RequiredStatistics = {
+ runTime: boolean
+}
+
/**
* Worker choice strategy interface.
*
* Is the pool attached to the strategy dynamic?.
*/
isDynamicPool: boolean
+ /**
+ * Required tasks usage statistics.
+ */
+ requiredStatistics: RequiredStatistics
/**
* Choose a worker in the pool.
*/