{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-airflow/issues/1490","repository_url":"https://api.github.com/repos/apache/incubator-airflow","labels_url":"https://api.github.com/repos/apache/incubator-airflow/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-airflow/issues/1490/comments","events_url":"https://api.github.com/repos/apache/incubator-airflow/issues/1490/events","html_url":"https://github.com/apache/incubator-airflow/pull/1490","id":154390799,"number":1490,"title":"[AIRFLOW-106] : Fix : Don't treat premature tasks as could_not_run tasks","user":{"login":"r39132","id":581734,"avatar_url":"https://avatars.githubusercontent.com/u/581734?v=3","gravatar_id":"","url":"https://api.github.com/users/r39132","html_url":"https://github.com/r39132","followers_url":"https://api.github.com/users/r39132/followers","following_url":"https://api.github.com/users/r39132/following{/other_user}","gists_url":"https://api.github.com/users/r39132/gists{/gist_id}","starred_url":"https://api.github.com/users/r39132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r39132/subscriptions","organizations_url":"https://api.github.com/users/r39132/orgs","repos_url":"https://api.github.com/users/r39132/repos","events_url":"https://api.github.com/users/r39132/events{/privacy}","received_events_url":"https://api.github.com/users/r39132/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-12T03:44:48Z","updated_at":"2016-05-12T15:47:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-airflow/pulls/1490","html_url":"https://github.com/apache/incubator-airflow/pull/1490","diff_url":"https://github.com/apache/incubator-airflow/pull/1490.diff","patch_url":"https://github.com/apache/incubator-airflow/pull/1490.patch"},"body":"Dear Airflow Maintainers,\r\n\r\nPlease accept this PR that addresses the following issues:\r\n- *https://issues.apache.org/jira/browse/AIRFLOW-106*\r\n\r\nA Picture speaks a 1000 words. \r\nThe first 4 DagRuns in the image below are before the fix, the last DagRun is with the fix.\r\n\r\nThe bug in the first 4 DagRuns is that the task is forever stuck in the UP_FOR_RETRY state although the DagRun has FAILED. As a consequence, failure callbacks, failure emails, and retries are not executed.\r\n\r\nThe 5th DagRun has the fix. In this case, all retries were executed. When the retries had been exhausted, full failure handing was executed: failure emails, failure callbacks, etc...\r\n\r\n<img width=\"783\" alt=\"screenshot 2016-05-12 03 42 37\" src=\"https://cloud.githubusercontent.com/assets/581734/15203474/bea73828-17f3-11e6-8284-66a4e0b8c321.png\">\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-airflow/issues/comments/218799266","html_url":"https://github.com/apache/incubator-airflow/pull/1490#issuecomment-218799266","issue_url":"https://api.github.com/repos/apache/incubator-airflow/issues/1490","id":218799266,"user":{"login":"r39132","id":581734,"avatar_url":"https://avatars.githubusercontent.com/u/581734?v=3","gravatar_id":"","url":"https://api.github.com/users/r39132","html_url":"https://github.com/r39132","followers_url":"https://api.github.com/users/r39132/followers","following_url":"https://api.github.com/users/r39132/following{/other_user}","gists_url":"https://api.github.com/users/r39132/gists{/gist_id}","starred_url":"https://api.github.com/users/r39132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r39132/subscriptions","organizations_url":"https://api.github.com/users/r39132/orgs","repos_url":"https://api.github.com/users/r39132/repos","events_url":"https://api.github.com/users/r39132/events{/privacy}","received_events_url":"https://api.github.com/users/r39132/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T15:47:04Z","updated_at":"2016-05-12T15:47:04Z","body":"And that it has failed as well."}}