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 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-cronevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10