Offload tasks to a pool of workers on node.js and in the browser
95
Pending
Does it follow best practices?
Impact
95%
1.23xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how well the engineer uses workerpool's event emission capabilities to report progress from workers during task execution. The focus is on proper use of worker event emission APIs and event handling in the main thread.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Creates worker pool",
"description": "Uses workerpool.pool() to create a worker pool instance",
"max_score": 15
},
{
"name": "Implements worker script",
"description": "Creates a separate worker script file that defines the file processing function using workerpool.worker() to register methods",
"max_score": 20
},
{
"name": "Emits events from worker",
"description": "Uses workerEmit() or worker.emit() within the worker function to emit progress events during task execution",
"max_score": 25
},
{
"name": "Handles events in main thread",
"description": "Uses the 'on' callback option in pool.exec() to capture and handle events emitted from workers",
"max_score": 25
},
{
"name": "Executes tasks via pool.exec()",
"description": "Uses pool.exec() with appropriate method name and parameters to execute worker tasks",
"max_score": 15
}
]
}evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10