Skip to content

Instantly share code, notes, and snippets.

Daniel Orner dorner

Block or report user

Report or block dorner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dorner / cron.yaml
Last active Apr 1, 2019
How to execute code in Elastic Beanstalk only if you're the leader
View cron.yaml
# We are not using this file to run actual cron jobs. This is because the
# built-in Elastic Beanstalk cron feature actually puts the jobs at the end
# of the SQS queue. Instead we will run them manually. However, we need to
# have a non-empty cron.yaml or the SQS daemon won't even run and leader
# election won't work.
version: 1
- name: "DoNothingJob"
url: "/periodic_tasks"
schedule: "0 0 31 2 *"
You can’t perform that action at this time.