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
Quality

Pending

Does it follow best practices?

Impact

94%

1.20x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how well the engineer uses the cron package's callback management features to implement a task scheduler with metrics tracking. The focus is on proper usage of onTick, addCallback(), and onComplete callback mechanisms.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "CronJob instantiation",
      "description": "Uses CronJob constructor or CronJob.from() to create a scheduled job with a valid cron expression (e.g., '*/5 * * * * *' for every 5 seconds)",
      "max_score": 20
    },
    {
      "name": "Primary onTick callback",
      "description": "Provides the main task callback as the onTick parameter in the CronJob constructor, ensuring it executes on each scheduled trigger",
      "max_score": 20
    },
    {
      "name": "Additional callback registration",
      "description": "Uses the addCallback() method to register the metrics tracking callback, demonstrating support for multiple callbacks per job",
      "max_score": 25
    },
    {
      "name": "onComplete callback",
      "description": "Provides an onComplete callback parameter in the CronJob constructor that executes when the job stops, displaying execution statistics",
      "max_score": 25
    },
    {
      "name": "Job lifecycle control",
      "description": "Uses start() and stop() methods to properly control the job execution lifecycle",
      "max_score": 10
    }
  ]
}

tile.json