דלג לתוכן הראשי

לפי לוח זמנים

Triggeron-schedule

מתחיל בימים ובשעה שתבחרו.

במבט אחד​

מאפייןערך
Trigger nameon-schedule
ResourceClusterTrigger (lumen.ai/v1alpha1)
Sourceschedule
Needs a connectionno
Producesnothing
Emitsitem
Installation must providenothing

The trigger goes under spec.triggers of a Flow. Its outputs are referenced as <triggerId>.<field>. A trigger can also carry a when condition ("Start only when") and disabled: true.

פלט​

No named outputs: this trigger hands its first node the documents only.

הגדרות​

Set under config: on the flow trigger.

הגדרהסוגברירת מחדלתיאור
cronstring-Cron is a five-field cron expression: "0 9 1 * *" is 09:00 on the first of every month. Leave it out when Every is set.minLength 1; maxLength 100
everyobject-Every runs it at a fixed interval, counted on the clock in TimeZone from midnight: every 15 minutes is :00, :15, :30, :45. Leave it out when Cron is set.
every.valueחובהinteger-minimum 1; maximum 1440
every.unitחובהstring-Unit is minutes or hours.one of minutes, hours
timeZonestring-TimeZone is the IANA zone the cron is read in; unset is UTC.minLength 1
startDatestring-StartDate is the first day it may fire, YYYY-MM-DD in TimeZone.pattern `^\d{4}-\d{2}-\d{2}$`
endDatestring-EndDate is the last day it may fire, YYYY-MM-DD in TimeZone.pattern `^\d{4}-\d{2}-\d{2}$`

ה-JSON Schema המלא של ההגדרות: on-schedule.schema.json.

שימוש בתהליך​

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: on-schedule-example
namespace: tenant-acme
spec:
displayName: "On a schedule"
triggers:
- id: start
ref: {name: on-schedule}
config:
cron: "0 8 * * 1"
timeZone: Asia/Jerusalem
next: [notify-in-app]
nodes:
- id: notify-in-app
stepRef: {name: notify-in-app}
config:
body: 'Total: {total}'
title: New invoice from {supplier}
to: admins