Skip to content
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

Feature: Tasks Index #10

Open
javibravo opened this issue Mar 16, 2017 · 0 comments
Open

Feature: Tasks Index #10

javibravo opened this issue Mar 16, 2017 · 0 comments

Comments

@javibravo
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant