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
Copy file name to clipboardExpand all lines: aws-node-scheduled-cron/README.md
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,22 @@ To see your job running tail your logs with:
8
8
serverless logs -function cron -tail
9
9
```
10
10
11
+
For more information on `schedule` event check out [our docs](https://serverless.com/framework/docs/providers/aws/events/schedule/).
12
+
13
+
Schedule events use the `rate` or `cron` syntax.
14
+
15
+
## Rate syntax
16
+
17
+
```pseudo
18
+
rate(value unit)
19
+
```
20
+
21
+
`value` - A positive number
22
+
23
+
`unit` - The unit of time. ( minute | minutes | hour | hours | day | days )
24
+
25
+
For more [information on the rate syntax see the AWS docs](http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#RateExpressions)
26
+
11
27
## Cron syntax
12
28
13
29
```pseudo
@@ -25,4 +41,8 @@ All fields are required and time zone is UTC only.
25
41
| Day-of-week | 1-7 or SUN-SAT | , - * ? / L # |
26
42
| Year | 1970-2199 | , - * / |
27
43
28
-
Read the [AWS cron expression syntax](http://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html) docs for more info on how to setup cron
44
+
Read the [AWS cron expression syntax](http://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html) docs for more info on how to setup cron
45
+
46
+
## Additonal Resources
47
+
48
+
For more information on running cron with Serverless check out the [Tutorial: Serverless Scheduled Tasks](https://parall.ax/blog/view/3202/tutorial-serverless-scheduled-tasks) by parallax.
0 commit comments