nanobus.transport.time.scheduler/v1
Description
JobsSource code
Options
type Schedule
Examples
Basic configuration
- YAML
- TypeScript
transports:
dapr:
uses: nanobus.transport.time.scheduler/v1
with:
schedules:
- handler: 'log::helloWorld'
schedule: '*/1 * * * *'
- handler: 'log::helloMoon'
schedule: '*/2 * * * *'
import { SchedulerV1 } from "https://deno.land/x/nanobusconfig@v0.0.14/mod.ts";
app.transport(
"dapr",
SchedulerV1({
schedules: [{
handler: log.helloWorld,
schedule: '*/1 * * * *',
}, {
handler: log.helloWorld,
schedule: '*/2 * * * *',
}],
}),
);