🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vox-ai-app/scheduler

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vox-ai-app/scheduler

Cron-based job scheduler for Vox — schedule recurring agent runs, heartbeats, and timed tasks

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@vox-ai-app/scheduler

Cron-based job scheduler for Vox — schedule recurring agent runs, heartbeats, and timed tasks with timezone support.

Install

npm install @vox-ai-app/scheduler

Exports

ExportContents
@vox-ai-app/schedulerAll scheduler exports
@vox-ai-app/scheduler/cronJob scheduling, cancellation, listing

Usage

import { scheduleJob, cancelJob, listJobs, computeNextRun } from '@vox-ai-app/scheduler'

const job = scheduleJob(
  'daily-check',
  { expr: '0 9 * * *', tz: 'America/New_York' },
  (id, meta) => {
    console.log(`Job ${id} fired at ${meta.firedAt}`)
  }
)

console.log(listJobs())
cancelJob('daily-check')

Schedule persistence is handled by the app layer via @vox-ai-app/storage/schedules.

API

Cron

FunctionDescription
scheduleJobSchedule a cron job with handler callback
cancelJobCancel a job by ID
cancelAllJobsCancel all running jobs
getJobGet job details by ID
listJobsList all active jobs with next run times
computeNextRunCompute the next run time for a cron expression

scheduleJob options:

scheduleJob(
  id,
  {
    expr: '0 9 * * 1-5',
    tz: 'America/New_York',
    runImmediately: false,
    onError: (err) => {}
  },
  handler
)

Dependencies

  • croner ^9.0.0

License

MIT

FAQs

Package last updated on 05 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts