{"action":"opened","issue":{"url":"https://api.github.com/repos/airbnb/airflow/issues/1260","repository_url":"https://api.github.com/repos/airbnb/airflow","labels_url":"https://api.github.com/repos/airbnb/airflow/issues/1260/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/airflow/issues/1260/comments","events_url":"https://api.github.com/repos/airbnb/airflow/issues/1260/events","html_url":"https://github.com/airbnb/airflow/issues/1260","id":144632454,"number":1260,"title":"DAG with schedule interval '@once' cannot be scheduled","user":{"login":"ty707","id":1555500,"avatar_url":"https://avatars.githubusercontent.com/u/1555500?v=3","gravatar_id":"","url":"https://api.github.com/users/ty707","html_url":"https://github.com/ty707","followers_url":"https://api.github.com/users/ty707/followers","following_url":"https://api.github.com/users/ty707/following{/other_user}","gists_url":"https://api.github.com/users/ty707/gists{/gist_id}","starred_url":"https://api.github.com/users/ty707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ty707/subscriptions","organizations_url":"https://api.github.com/users/ty707/orgs","repos_url":"https://api.github.com/users/ty707/repos","events_url":"https://api.github.com/users/ty707/events{/privacy}","received_events_url":"https://api.github.com/users/ty707/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-30T15:40:27Z","updated_at":"2016-03-30T15:40:27Z","closed_at":null,"body":"Dear Airflow Maintainers,\r\n\r\nBefore I tell you about my issue, let me describe my environment:\r\n\r\n# Environment\r\n\r\n* Version of Airflow (e.g. a release version, running your own fork, running off master -- provide a git log snippet) : **1.7.0**\r\n* Example code to reproduce the bug (as a code snippet in markdown) **example_xcom from stock examples**\r\n* Stack trace if applicable:\r\n```\r\n[2016-03-30 15:36:49,858] {models.py:204} INFO - Importing /usr/local/lib/python2.7/dist-packages/airflow/example_dags/example_xcom.py\r\n[2016-03-30 15:36:49,863] {models.py:296} INFO - Loaded DAG <DAG: example_xcom>\r\n[2016-03-30 15:36:49,874] {jobs.py:642} ERROR - list index out of range\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/airflow/jobs.py\", line 638, in _execute\r\n    self.schedule_dag(dag)\r\n  File \"/usr/local/lib/python2.7/dist-packages/airflow/jobs.py\", line 397, in schedule_dag\r\n    next_run_date = dag.date_range(latest_run, -5)[0]\r\nIndexError: list index out of range\r\n```\r\n* Operating System: (Windows Version or `$ uname -a`) : **Ubuntu 14.04**\r\n* Python Version: `$ python --version` **2.7.6**\r\n\r\nNow that you know a little about me, let me tell you about the issue I am having:\r\n\r\n# Description of Issue\r\n\r\n* What did you expect to happen? **For the DAG to be scheduled**\r\n* What happened instead? **Error shown above**\r\n* Here is how you can reproduce this issue on your machine:\r\n\r\n## Reproduction Steps\r\n\r\n1. Make sure the stock example DAG `example_xcom` is unpaused\r\n2. If there is no example_xcom example, create any DAG with a schedule_interval of `@once`\r\n3. Run the scheduler\r\n\r\n"}}