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

{
  "context": "This criteria evaluates how well the engineer uses the cron package's Date-based one-time execution capability to implement a reminder scheduler. The focus is on proper usage of the CronJob class with Date objects for single execution, along with start/stop control mechanisms.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CronJob instantiation",
      "description": "Creates a CronJob instance using the constructor or CronJob.from() factory method",
      "max_score": 20
    },
    {
      "name": "Date object usage",
      "description": "Passes the reminderTime Date parameter as the cronTime argument to CronJob, demonstrating understanding of Date-based one-time execution",
      "max_score": 25
    },
    {
      "name": "Callback integration",
      "description": "Properly passes the onReminder callback function as the onTick parameter to CronJob",
      "max_score": 15
    },
    {
      "name": "Auto-start control",
      "description": "Uses the 'start' parameter in the CronJob constructor to control whether the job begins immediately, respecting the autoStart parameter from the spec",
      "max_score": 20
    },
    {
      "name": "Start method",
      "description": "Returns an object with a start() method that calls the CronJob's start() method to enable manual starting",
      "max_score": 10
    },
    {
      "name": "Stop method",
      "description": "Returns an object with a stop() method that calls the CronJob's stop() method to prevent or cancel execution",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-cron

tile.json