{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/airflow/issues/1431","repository_url":"https://api.github.com/repos/airbnb/airflow","labels_url":"https://api.github.com/repos/airbnb/airflow/issues/1431/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/airflow/issues/1431/comments","events_url":"https://api.github.com/repos/airbnb/airflow/issues/1431/events","html_url":"https://github.com/airbnb/airflow/pull/1431","id":151092923,"number":1431,"title":"AIRFLOW-20: Improving the scheduler by making dag runs more coherent","user":{"login":"bolkedebruin","id":4282712,"avatar_url":"https://avatars.githubusercontent.com/u/4282712?v=3","gravatar_id":"","url":"https://api.github.com/users/bolkedebruin","html_url":"https://github.com/bolkedebruin","followers_url":"https://api.github.com/users/bolkedebruin/followers","following_url":"https://api.github.com/users/bolkedebruin/following{/other_user}","gists_url":"https://api.github.com/users/bolkedebruin/gists{/gist_id}","starred_url":"https://api.github.com/users/bolkedebruin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolkedebruin/subscriptions","organizations_url":"https://api.github.com/users/bolkedebruin/orgs","repos_url":"https://api.github.com/users/bolkedebruin/repos","events_url":"https://api.github.com/users/bolkedebruin/events{/privacy}","received_events_url":"https://api.github.com/users/bolkedebruin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/airbnb/airflow/labels/Enhancement","name":"Enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/airbnb/airflow/labels/Job/Executor","name":"Job/Executor","color":"bfd4f2"},{"url":"https://api.github.com/repos/airbnb/airflow/labels/Needs%20Review","name":"Needs Review","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"bolkedebruin","id":4282712,"avatar_url":"https://avatars.githubusercontent.com/u/4282712?v=3","gravatar_id":"","url":"https://api.github.com/users/bolkedebruin","html_url":"https://github.com/bolkedebruin","followers_url":"https://api.github.com/users/bolkedebruin/followers","following_url":"https://api.github.com/users/bolkedebruin/following{/other_user}","gists_url":"https://api.github.com/users/bolkedebruin/gists{/gist_id}","starred_url":"https://api.github.com/users/bolkedebruin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolkedebruin/subscriptions","organizations_url":"https://api.github.com/users/bolkedebruin/orgs","repos_url":"https://api.github.com/users/bolkedebruin/repos","events_url":"https://api.github.com/users/bolkedebruin/events{/privacy}","received_events_url":"https://api.github.com/users/bolkedebruin/received_events","type":"User","site_admin":false},"milestone":null,"comments":27,"created_at":"2016-04-26T10:01:55Z","updated_at":"2016-05-03T16:16:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/airbnb/airflow/pulls/1431","html_url":"https://github.com/airbnb/airflow/pull/1431","diff_url":"https://github.com/airbnb/airflow/pull/1431.diff","patch_url":"https://github.com/airbnb/airflow/pull/1431.patch"},"body":"This particular issue arises because of an alignment issue between\r\nstart_date and schedule_interval. This can only happen with cron-based\r\nschedule_intervals that describe absolute points in time (like “1am”) as\r\nopposed to time deltas (like “every hour”)\r\n\r\nIn the past (and in the docs) we have simply said that users must make\r\nsure the two params agree. But this is counter intuitive. As in these\r\ncases, start_date is sort of like telling the scheduler to\r\n“start paying attention” as opposed to “this is my first execution date”.\r\n\r\nThis patch changes the behavior of the scheduler. The next run date of\r\nthe dag will be treated as \"start_date + interval\" unless the start_date\r\nis on the (previous) interval in which case the start_date will be the\r\nnext run date.\r\n\r\n* Supersedes #1428\r\n* Resolves #1427"},"comment":{"url":"https://api.github.com/repos/airbnb/airflow/issues/comments/216581983","html_url":"https://github.com/airbnb/airflow/pull/1431#issuecomment-216581983","issue_url":"https://api.github.com/repos/airbnb/airflow/issues/1431","id":216581983,"user":{"login":"bolkedebruin","id":4282712,"avatar_url":"https://avatars.githubusercontent.com/u/4282712?v=3","gravatar_id":"","url":"https://api.github.com/users/bolkedebruin","html_url":"https://github.com/bolkedebruin","followers_url":"https://api.github.com/users/bolkedebruin/followers","following_url":"https://api.github.com/users/bolkedebruin/following{/other_user}","gists_url":"https://api.github.com/users/bolkedebruin/gists{/gist_id}","starred_url":"https://api.github.com/users/bolkedebruin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolkedebruin/subscriptions","organizations_url":"https://api.github.com/users/bolkedebruin/orgs","repos_url":"https://api.github.com/users/bolkedebruin/repos","events_url":"https://api.github.com/users/bolkedebruin/events{/privacy}","received_events_url":"https://api.github.com/users/bolkedebruin/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T16:16:16Z","updated_at":"2016-05-03T16:16:16Z","body":"That is interesting indeed. Are these the only two considered to be overriden? Do you know why (why is a backfill executing on the same date as an earlier one?)"}}