Skip to content

Update README.md #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,17 @@ All http methods will be supported soon.

## Frequency

When setting up the frequency of **LambdaCron** you must have into account following things.
#### Execution time
All tasks scheduled to run between the current event and the next event will be run immediately.

#### Higher frequency is 1 minute
Example: LambdaCron runs every hour ('0 * * * *'), tasks '0 1 * * *' and '58 1 * * *' will run at the same time.

#### Task frequency
Lambda cron will execute a task at most once invocation. This can result in a task being run fewer times than it's cron expression implies.

Example: If LambdaCron runs every hour ('0 * * * *'), a task '*/15 * * * *' will only run once an hour. If LambdaCron runs every minute ('* * * * *'), a task '*/15 * * * *' will only run four times an hour.

#### Frequecy and Precision

Events are based on [AWS CloudWatch Events](http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html).
You can read in following [documentation](http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html):
Expand All @@ -375,15 +383,6 @@ You can read in following [documentation](http://docs.aws.amazon.com/AmazonCloud

Be aware of this.

#### Higher frequency for a task is LambdaCron frequency.

It means that if LambdaCron run every hour and the task expression is set for every 15 min. the task
will run once an hour. When LambdaCron runs it will executed all tasks scheduled for the period of
time until next execution.

For example, if LambdaCron runs every hour (at mininute 00) and there is a task scheduled for minute 30, it will
run at minute 00. LambdaCron will run again next hour.

## Getting Started

### Install
Expand Down