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 evaluation assesses how well the engineer uses the cron package's execution threshold control capability, specifically the threshold parameter and related APIs. The focus is on correctly configuring jobs with threshold values and understanding how the threshold mechanism affects job execution.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CronJob instantiation",
"description": "Uses the CronJob class (or CronJob.from() factory method) to create scheduled jobs instead of attempting to implement custom scheduling logic",
"max_score": 20
},
{
"name": "Threshold parameter usage",
"description": "Correctly passes the threshold parameter to the CronJob constructor to configure execution delay tolerance in milliseconds",
"max_score": 30
},
{
"name": "CronTime configuration",
"description": "Properly configures the cronTime parameter with valid cron expressions for the scheduling interval",
"max_score": 15
},
{
"name": "onTick callback",
"description": "Implements the onTick callback parameter to define the function that executes on each scheduled tick",
"max_score": 15
},
{
"name": "Job control methods",
"description": "Returns or exposes the CronJob's start() and stop() methods to allow job lifecycle control",
"max_score": 10
},
{
"name": "Threshold variation handling",
"description": "Correctly handles multiple different threshold values across different jobs, demonstrating understanding that each job maintains its own threshold setting",
"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