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

{
  "context": "This criteria evaluates how well the engineer uses the workerpool package to implement task timeout functionality. The focus is on correct usage of workerpool's pool creation, task execution, timeout methods, and error handling.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Worker Pool Creation",
      "description": "Uses workerpool.pool() to create a worker pool for executing tasks in parallel",
      "max_score": 20
    },
    {
      "name": "Task Execution",
      "description": "Uses pool.exec() method to execute tasks on the worker pool",
      "max_score": 20
    },
    {
      "name": "Timeout Configuration",
      "description": "Uses the .timeout() method on the promise returned by pool.exec() to set task timeout limits",
      "max_score": 30
    },
    {
      "name": "Timeout Error Handling",
      "description": "Properly catches and handles TimeoutError exceptions when tasks exceed their timeout limit",
      "max_score": 20
    },
    {
      "name": "Pool Termination",
      "description": "Uses pool.terminate() to properly clean up and release worker pool resources",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-workerpool

tile.json