Cron
The Cron
trigger schedules a workflow based on a cron expression.
The expression supports a seconds field to allow for sub-minute resolution scheduling of workflows. The general form is the following (with years being) optional:
<seconds> <minutes> <hours> <days of month> <months> <days of week> <years>
Configuration
expression
- a string with the cron expression to use as the schedule for this workflow.
Usage
local Cron = require "porla.triggers.Cron"
Example
Cron:new{
expression = "*/5 * * * * *"
}