Skip to content

Instantly share code, notes, and snippets.

@adamantnz
Created June 13, 2019 14:17
Show Gist options
  • Save adamantnz/493255c5cf156c477e48a8c011812e24 to your computer and use it in GitHub Desktop.
Save adamantnz/493255c5cf156c477e48a8c011812e24 to your computer and use it in GitHub Desktop.
> aws events describe-rule --name "airflow-start-scheduler-service" --profile test
{
"Name": "airflow-start-scheduler-service",
"Arn": "arn:aws:events:<region>:<accountid>:rule/airflow-start-scheduler-service",
"ScheduleExpression": "cron(0/5 * * * ? *)",
"State": "ENABLED",
"Description": "runs 'airflow scheduler --run-duration 300' on airflow server every 300 seconds to ensure scheduler is always running"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment