Cron jobs for Node.js applications that enables developers to execute functions or system commands on schedules defined using standard cron syntax
94
{
"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-cronevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10