Cron jobs for Node.js applications that enables developers to execute functions or system commands on schedules defined using standard cron syntax
94
A monitoring utility that schedules periodic health checks for system services and tracks execution delays to ensure jobs run within acceptable time windows.
Creates scheduled jobs that monitor whether executions are occurring within acceptable time bounds, particularly important for time-sensitive system monitoring tasks.
@generates
/**
* Creates a scheduled health check job with execution threshold control.
*
* @param {string} cronTime - Cron expression defining the schedule (e.g., "*/5 * * * * *")
* @param {number} thresholdMs - Maximum acceptable delay in milliseconds before skipping execution
* @param {Function} onTick - Callback function to execute on each scheduled tick
* @param {Object} options - Additional configuration options
* @param {boolean} options.start - Whether to start the job immediately (default: true)
* @returns {Object} Job controller with start() and stop() methods
*/
function createHealthCheckJob(cronTime, thresholdMs, onTick, options = {}) {
// IMPLEMENTATION HERE
}
module.exports = {
createHealthCheckJob
};Provides job scheduling with execution threshold control capabilities.
@satisfied-by
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