All Projects → serverless → serverless-local-schedule

serverless / serverless-local-schedule

Licence: MIT license
⚡️🗺️⏰ Schedule AWS CloudWatch Event based invocations in local time(with DST support!)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to serverless-local-schedule

delay-timer
Time-manager of delayed tasks. Like crontab, but synchronous asynchronous tasks are possible scheduling, and dynamic add/cancel/remove is supported.
Stars: ✭ 257 (+277.94%)
Mutual labels:  schedule, crontab
Ncrontab
Crontab for .NET
Stars: ✭ 566 (+732.35%)
Mutual labels:  schedule, crontab
async cron
crontab for python,with asyncio
Stars: ✭ 23 (-66.18%)
Mutual labels:  schedule, crontab
Crontab
Parse Cron Expressions, Compose Cron Expression Strings and Caluclate Execution Dates.
Stars: ✭ 62 (-8.82%)
Mutual labels:  schedule, crontab
watchman
📆 更夫(watchman)是一款可视化的定时任务配置 Web 工具,麻麻不用担心我漏掉任何更新啦!
Stars: ✭ 40 (-41.18%)
Mutual labels:  schedule, crontab
croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (+148.53%)
Mutual labels:  schedule, crontab
fast-laravel
基于Swoole的高性能HTTP服务器,加速您Laravel应用程序。
Stars: ✭ 33 (-51.47%)
Mutual labels:  crontab
Saber-Bot
A discord bot to manage schedules & calendars with discord notifications.
Stars: ✭ 30 (-55.88%)
Mutual labels:  schedule
Torrent-Alert
Torrent Keyword Search, Schedule & Alert #BuildWithMeteorJS
Stars: ✭ 21 (-69.12%)
Mutual labels:  schedule
lawsg
The AWS Cloudwatch Log Viewer
Stars: ✭ 31 (-54.41%)
Mutual labels:  cloudwatch
CloudSimPy
CloudSimPy: Datacenter job scheduling simulation framework
Stars: ✭ 144 (+111.76%)
Mutual labels:  schedule
okra
Hot-swap Kubernetes clusters while keeping your service up and running.
Stars: ✭ 46 (-32.35%)
Mutual labels:  cloudwatch
legacy-bottlerockets
Node.js high availability queue and scheduler for background job processing
Stars: ✭ 25 (-63.24%)
Mutual labels:  schedule
flask-crontab
Simple Flask scheduled tasks without extra daemons
Stars: ✭ 99 (+45.59%)
Mutual labels:  crontab
openapi-tf-example
Example of how you can use OpenAPI with AWS API Gateway, Also includes integrations with AWSLambda, AWS Cognito, AWS SNS and CloudWatch logs
Stars: ✭ 38 (-44.12%)
Mutual labels:  cloudwatch
DNTScheduler.Core
DNTScheduler.Core is a lightweight ASP.NET Core's background tasks runner and scheduler
Stars: ✭ 44 (-35.29%)
Mutual labels:  schedule
threat-broadcast
威胁情报播报(停止运营)
Stars: ✭ 147 (+116.18%)
Mutual labels:  crontab
genshin-schedule
🕑 Genshin farming scheduler
Stars: ✭ 74 (+8.82%)
Mutual labels:  schedule
aria2-bt-tracker
auto update aria2 bt-tracker
Stars: ✭ 35 (-48.53%)
Mutual labels:  crontab
TT Jobs
基于 Swoole 定时管理系统
Stars: ✭ 22 (-67.65%)
Mutual labels:  crontab

Serverless Local Schedule

serverless npm

This plugin allows you to specify a timezone on your lambdas triggered by AWS CloudWatch Events.


Originally developed by Capital One, now maintained in scope of Serverless, Inc

Capital One considers itself the bank a technology company would build. It's delivering best-in-class innovation so that its millions of customers can manage their finances with ease. Capital One is all-in on the cloud and is a leader in the adoption of open source, RESTful APIs, microservices and containers. We build our own products and release them with a speed and agility that allows us to get new customer experiences to market quickly. Our engineers use artificial intelligence and machine learning to transform real-time data, software and algorithms into the future of finance, reimagined.


Install

sls plugin install -n serverless-local-schedule

For example:

functions:
  hello:
    handler: handler.hello
    events:
      - schedule:
          rate: cron(0 10 * * ? *)
          timezone: America/New_York

It works by converting that into 6 different schedules, effectively the same as having the following configuration:

functions:
  hello:
    handler: handler.hello
    events:
      - schedule:
          rate: cron(0 15 * 1-2,12 ? *) # full non-DST months
      - schedule:
          rate: cron(0 15 1-10 3 ? *) # non-DST portion of March
      - schedule:
          rate: cron(0 14 11-31 3 ? *) # DST portion of March
      - schedule:
          rate: cron(0 14 * 4-10 ? *) # full DST months
      - schedule:
          rate: cron(0 14 1-3 11 ? *) # DST portion of November
      - schedule:
          rate: cron(0 15 4-31 11 ? *) # non-DST portion of November

NOTE: The - schedule: cron(* * * * ? *) short syntax isn't supported.

NOTE: Unfortunately you cannot specify day of the week in the cron expression i.e. cron(0 7 ? * MON-FRI *). This is because to support the split months (March & November in the US), the plugin has to specify a day of month (EG: November 1-3 in 2018), so you cannot specify a DOW other than ? unfortunately. Recommended workaround for this is to move the day of week check into your code so it's just a no-op on non weekdays for instance.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].