Cron Connector

NPM Package: reshuffle

The Cron connector fires events according to the specified cron expression. If you are not familiar with cron expressions, you can use an online tool like to help you generate one.

For example, you can use this connector to monitor a system every 10 seconds, or send a daily email report.

Here is an example of how you would send a daily email using this connector:

const { Reshuffle, CronConnector } = require('reshuffle')
const { SMTPConnector } = require('reshuffle-smtp-connector')

const app = new Reshuffle()
const cronConnector = new CronConnector(app)
const smtpConnector = new SMTPConnector(
    username: 'superman',
    password: 'hunter123',
    host: '',
    port: 587,
    fromName: 'Spiderman II',
    fromEmail: '',

cronConnector.on({ expression: '*/10 * * * * *' }, (event, app) => {
    to: '',
    subject: 'daily report!',
    html: 'The report itself',



task Create a Cron task

Event Details

Cron Event

Event parameters:

expression: string - the cron expression for a task

Handler inputs:

none, general event provided


async (event, app) => {
  console.log('Task executed')

Execute a single task based on the cron expression