CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-cron

Cron jobs for Node.js applications that enables developers to execute functions or system commands on schedules defined using standard cron syntax

94

1.20x
Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This criteria evaluates how effectively the engineer uses the cron package's execution state monitoring capabilities, specifically the isActive and isCallbackRunning properties, along with basic job creation and control methods.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CronJob instantiation",
      "description": "Uses the CronJob class (or CronJob.from() factory) to create scheduled jobs with appropriate constructor parameters including cronTime, onTick, and start options",
      "max_score": 20
    },
    {
      "name": "Job naming",
      "description": "Uses the 'name' constructor parameter to assign names to jobs for identification and management purposes",
      "max_score": 10
    },
    {
      "name": "isActive monitoring",
      "description": "Correctly uses the isActive read-only property to check whether a job is currently scheduled and actively running",
      "max_score": 25
    },
    {
      "name": "isCallbackRunning monitoring",
      "description": "Correctly uses the isCallbackRunning read-only property to check whether a job's callback function is currently executing",
      "max_score": 25
    },
    {
      "name": "start() method",
      "description": "Uses the start() method to begin or resume job scheduling",
      "max_score": 10
    },
    {
      "name": "stop() method",
      "description": "Uses the stop() method to halt job scheduling",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-cron

tile.json