JSPM

@ezweave/serverless-offline-schedule

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 617
    • Score
      100M100P100Q105216F
    • License MIT

    Package Exports

    • @ezweave/serverless-offline-schedule
    • @ezweave/serverless-offline-schedule/dist/src/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ezweave/serverless-offline-schedule) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    serverless-offline-schedule

    This is a fork of serverless-offline-schedule as that project is no longer maintained.

    serverless npm version License: MIT Coverage Status code style: prettier

    Install Plugin

    npm install --save-dev serverless-offline-schedule

    Then in serverless.yml add following entry to the plugins array: serverless-offline-schedule

    plugins:
      - serverless-offline-schedule

    Using the Plugin

    Standalone process

    λ → sls schedule
    Serverless: Starting serverless-offline-schedule in standalone process. Press CTRL+C to stop.
    Serverless: Scheduling [schedule-function] cron: [*/1 * * * *] input: {"scheduler":"1-minute"}
    ...
    Serverless: Succesfully invoked scheduled function: [my-function]

    Part of serverless-offline

    serverless-offline-schedule will automatically hook into serverless-offline start command hook.

    λ → sls offline
    ...
    Serverless: Scheduling [schedule-function] cron: [*/1 * * * *] input: {"scheduler":"1-minute"}
    ...
    Serverless: Succesfully invoked scheduled function: [my-function]