You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following config will attach a schedule event and causes the stateMachine `crawl` to be called every 2 hours. The configuration allows you to attach multiple schedules to the same stateMachine. You can either use the `rate` or `cron` syntax. Take a look at the [AWS schedule syntax documentation](http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html) for more details.
165
+
166
+
```yaml
167
+
stepFunctions:
168
+
stateMachines:
169
+
crawl:
170
+
events:
171
+
- schedule: rate(2 hours)
172
+
- schedule: cron(0 12 * * ? *)
173
+
definition:
174
+
```
175
+
176
+
## Enabling / Disabling
177
+
178
+
**Note:**`schedule` events are enabled by default.
179
+
180
+
This will create and attach a schedule event for the `aggregate` stateMachine which is disabled. If enabled it will call
181
+
the `aggregate` stateMachine every 10 minutes.
182
+
183
+
```yaml
184
+
stepFunctions:
185
+
stateMachines:
186
+
aggregate:
187
+
events:
188
+
- schedule:
189
+
rate: rate(10 minutes)
190
+
enabled: false
191
+
input:
192
+
key1: value1
193
+
key2: value2
194
+
stageParams:
195
+
stage: dev
196
+
- schedule:
197
+
rate: cron(0 12 * * ? *)
198
+
enabled: false
199
+
inputPath: '$.stageVariables'
200
+
```
201
+
202
+
## Specify Name and Description
203
+
204
+
Name and Description can be specified for a schedule event. These are not required properties.
0 commit comments