CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-workerpool

Offload tasks to a pool of workers on node.js and in the browser

Overall
score

95%

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "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
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-workerpool

tile.json