{"action":"closed","issue":{"url":"https://api.github.com/repos/JustFixNYC/nycdb-k8s-loader/issues/3","repository_url":"https://api.github.com/repos/JustFixNYC/nycdb-k8s-loader","labels_url":"https://api.github.com/repos/JustFixNYC/nycdb-k8s-loader/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/JustFixNYC/nycdb-k8s-loader/issues/3/comments","events_url":"https://api.github.com/repos/JustFixNYC/nycdb-k8s-loader/issues/3/events","html_url":"https://github.com/JustFixNYC/nycdb-k8s-loader/issues/3","id":391815314,"node_id":"MDU6SXNzdWUzOTE4MTUzMTQ=","number":3,"title":"Make the scheduled tasks use cron expressions","user":{"login":"toolness","id":124687,"node_id":"MDQ6VXNlcjEyNDY4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/124687?v=4","gravatar_id":"","url":"https://api.github.com/users/toolness","html_url":"https://github.com/toolness","followers_url":"https://api.github.com/users/toolness/followers","following_url":"https://api.github.com/users/toolness/following{/other_user}","gists_url":"https://api.github.com/users/toolness/gists{/gist_id}","starred_url":"https://api.github.com/users/toolness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolness/subscriptions","organizations_url":"https://api.github.com/users/toolness/orgs","repos_url":"https://api.github.com/users/toolness/repos","events_url":"https://api.github.com/users/toolness/events{/privacy}","received_events_url":"https://api.github.com/users/toolness/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T17:27:56Z","updated_at":"2018-12-17T20:32:44Z","closed_at":"2018-12-17T20:32:44Z","author_association":"CONTRIBUTOR","body":"Right now the `aws_schedule_tasks.py` script uses the [simple scheduled events syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html), which is very limited, especially since the intervals are based on when the scheduled tasks are first created (so using an interval of `rate(1 day)` will trigger every day at the time that the task was first created).  We should probably use cron syntax instead, so that e.g. tasks can be run at night regardless of when the schedule was created."}}
{"actor":{"display_login":"toolness"}}