Skip to content

Commit cc299fb

Browse files
committed
docs: tasks distribution refinements
Signed-off-by: Jérôme Benoit <[email protected]>
1 parent 3480ba8 commit cc299fb

File tree

3 files changed

+8
-21
lines changed

3 files changed

+8
-21
lines changed

deno.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "0.5.0",
44
"exports": "./src/mod.ts",
55
"compilerOptions": {
6-
"lib": [
7-
"deno.worker"
8-
],
6+
"lib": ["deno.worker"],
97
"strict": true
108
},
119
"tasks": {
@@ -26,9 +24,7 @@
2624
"documentation": "deno doc ./src/mod.ts"
2725
},
2826
"test": {
29-
"include": [
30-
"./tests/**/*.test.mjs"
31-
]
27+
"include": ["./tests/**/*.test.mjs"]
3228
},
3329
"fmt": {
3430
"semiColons": false,
@@ -41,18 +37,8 @@
4137
"@std/testing": "jsr:@std/testing@^1.0.14"
4238
},
4339
"publish": {
44-
"include": [
45-
"LICENSE",
46-
"README.md",
47-
"deno.json",
48-
"src/**/*.ts"
49-
]
40+
"include": ["LICENSE", "README.md", "deno.json", "src/**/*.ts"]
5041
},
5142
"lock": false,
52-
"exclude": [
53-
"./coverage",
54-
"./dist/browser",
55-
"./dist/esm",
56-
"./npm"
57-
]
43+
"exclude": ["./coverage", "./dist/browser", "./dist/esm", "./npm"]
5844
}

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ An object with these properties:
150150
based on tasks execution time (experimental)
151151
- `WorkerChoiceStrategies.FAIR_SHARE`: Submit tasks to worker by using a
152152
[fair share scheduling algorithm](./worker-choice-strategies.md#fair-share)
153-
based on tasks execution time (the default) or ELU active time
153+
based on tasks execution time (the default) <!-- or ELU active time -->
154154

155155
`WorkerChoiceStrategies.WEIGHTED_ROUND_ROBIN`,
156156
`WorkerChoiceStrategies.INTERLEAVED_WEIGHTED_ROUND_ROBIN` and

docs/worker-choice-strategies.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ the strategy keeps track of the simple moving average task execution time for
2020
each worker and assigns the next task to the worker with the lowest task end
2121
prediction time:
2222
`task_end_prediction = max(current_time, task_end_prediction) + simple_moving_average_task_execution_time`.\
23-
By default, the strategy uses the simple moving average task execution time for
23+
24+
<!-- By default, the strategy uses the simple moving average task execution time for
2425
each worker but it can be configured to use the simple moving average task event
25-
loop utilization (ELU) active time instead.
26+
loop utilization (ELU) active time instead. -->
2627

2728
### Weighted round robin
2829

0 commit comments

Comments
 (0)