Skip to content

Commit 72a844a

Browse files
committed
update readme
1 parent 89005fd commit 72a844a

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

aws-node-scheduled-cron/README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ To see your job running tail your logs with:
88
serverless logs -function cron -tail
99
```
1010

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+
1127
## Cron syntax
1228

1329
```pseudo
@@ -25,4 +41,8 @@ All fields are required and time zone is UTC only.
2541
| Day-of-week | 1-7 or SUN-SAT | , - * ? / L # |
2642
| Year | 1970-2199 | , - * / |
2743

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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy