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-4/

{
  "context": "This criteria evaluates how well the engineer uses workerpool's task cancellation capabilities, including the cancel() method, timeout() method, and specialized error handling for CancellationError and TimeoutError.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Worker Pool Creation",
      "description": "Uses workerpool.pool() to create a worker pool with appropriate configuration options (maxWorkers, etc.)",
      "max_score": 15
    },
    {
      "name": "Task Execution",
      "description": "Uses pool.exec() to execute tasks in the worker pool, correctly passing function and arguments",
      "max_score": 15
    },
    {
      "name": "Cancel Method Usage",
      "description": "Correctly implements task cancellation using the cancel() method on the promise returned by pool.exec()",
      "max_score": 25
    },
    {
      "name": "Timeout Method Usage",
      "description": "Correctly implements task timeout using the timeout() method on the promise returned by pool.exec()",
      "max_score": 20
    },
    {
      "name": "CancellationError Handling",
      "description": "Correctly catches and identifies CancellationError (using workerpool.Promise.CancellationError or instanceof check) to distinguish cancelled tasks",
      "max_score": 15
    },
    {
      "name": "TimeoutError Handling",
      "description": "Correctly catches and identifies TimeoutError (using workerpool.Promise.TimeoutError or instanceof check) to distinguish timed-out tasks",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-workerpool

tile.json