Coder Social home page Coder Social logo

lambda-cron's People

Contributors

fsargent avatar javibravo avatar rmalecky avatar sean-garvey avatar vincetse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lambda-cron's Issues

Feature: Tasks Index

When the AWS Lambda function runs it reads all the task definitions (yml files) in the directory (tasks) and evaluate the cron expression for each of them. While the number of task grows performance will be affected negatively.

Proposal:

  1. When uploading the tasks to S3 create a file indexing tasks files by cron expression. In this way the AWS Lambda function will read the index file, evaluate different cron expressions only once and will read only the files with the tasks that must be executed.
    Example:
*/30 * * * *:
    - my_task_definition_1.yml
    - my_task_definition_2.yml
0 * * * *:
    - my_task_definiiton_3.yml

Feature: Support all parameters for boto3 SQS.Queue.send_message

For Queue tasks, currently, the tool only allow to indicate the message body to send to the queue. It doesn't allow the possibility to use all options provided by the library.

Proposal:

  1. Update task runner to handle all or most useful options provided by boto3 to send a message to a SQS queue.

Feature: Disable tasks

Currently the only way to disable tasks is to remove from S3 the file that define the task. Be able to disable tasks in the task definition could be useful.

Proposals:

  1. Add new attribute in task definition to indicate if the task is enabled or disabled:

    • enabaled: [True|False] (True by default)
  2. Replace cron expression with a keyword, ie. disabled

Feature: Add command to show logs

To check the logs of LambdaCron you need to access to AWS CloudWatch using AWS console, CLI or other tool.

I would be useful to add a new command to the CLI to show logs in the terminal in an easy way.

Fature: Add command to list tasks

Currently to know the tasks that are deployed in the environment the user needs to list the S3 bucket and browse in the files to see details (ie. cron expresion).

Proposed:
Add new command to list tasks deployed in the S3 bucket and detailed info in a crontab manner:

(cron expresion) (type) (name)

0 * * * *   lambda   run-etl-process-prod
0 9 * * *   queue    my-scheduler-queue

Feature: Allow nested setting files

Currently LambdaCron allows to set environment options in one file (~/.lambda-cron.yml). Could be good to be able to set environment options in different files (different projects).

Proposal:

  1. Be able to include setting files in ~/.lambda-cron.yml. For example:
my-project-a:
    settings: /path/to/my-project-a/lambda-cron.yml
my-project-b:
    settings: /path/to/my-porject-b/lambda-cron.yml

Feature: Customize CLI output

The output of the CLI shows the output/results of the commands executed to do the job. It is not user friendly.

Proposal:

  1. Hide output from the commands executed by the tool and show meaningful output for the user:
    • Summary of the task running (environment and options)
    • Progress of the process

Fix: Validate all task files

Currently the validation only run over YAML files (extension .yml).

Proposal
Force all task files to end with ".yml" in the validation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.