{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/airflow/issues/633","labels_url":"https://api.github.com/repos/airbnb/airflow/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/airflow/issues/633/comments","events_url":"https://api.github.com/repos/airbnb/airflow/issues/633/events","html_url":"https://github.com/airbnb/airflow/issues/633","id":116929065,"number":633,"title":"Task doesn't start Immediately after the dependency is met","user":{"login":"puneethpotu","id":8812146,"avatar_url":"https://avatars.githubusercontent.com/u/8812146?v=3","gravatar_id":"","url":"https://api.github.com/users/puneethpotu","html_url":"https://github.com/puneethpotu","followers_url":"https://api.github.com/users/puneethpotu/followers","following_url":"https://api.github.com/users/puneethpotu/following{/other_user}","gists_url":"https://api.github.com/users/puneethpotu/gists{/gist_id}","starred_url":"https://api.github.com/users/puneethpotu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puneethpotu/subscriptions","organizations_url":"https://api.github.com/users/puneethpotu/orgs","repos_url":"https://api.github.com/users/puneethpotu/repos","events_url":"https://api.github.com/users/puneethpotu/events{/privacy}","received_events_url":"https://api.github.com/users/puneethpotu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/airbnb/airflow/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-14T14:34:08Z","updated_at":"2015-11-15T22:20:50Z","closed_at":null,"body":"Hi can someone help me with the below problem or explain what might be happening\r\n\r\nI have a dag In which the first task is time sensor looking for 8:00 UTC and the second task which is dependent on the first time sensor task. It looks like the Time sensor succeeded at 8:00 when the time has reached, but my second task didn't start until 9:00. I have the code attached below\r\n\r\n```\r\ndefault_args = {\r\n    'owner': 'dwh',\r\n    'depends_on_past': True,\r\n    'wait_for_downstream': True,\r\n    'start_date': datetime(2015, 11, 12),\r\n    'email': [''],\r\n    'email_on_failure': True,\r\n    'email_on_retry': True,\r\n    'retries': 0,\r\n    'schedule_interval': timedelta(1),\r\n    'retry_interval': timedelta(minutes=15),\r\n    'queue': 'dwh',\r\n    # 'pool': 'backfill',\r\n    # 'priority_weight': 10,\r\n    # 'end_date': datetime(2016, 1, 1),\r\n}\r\n\r\ndag = DAG(job_name, default_args=default_args)\r\n\r\ntask_start_job = TimeSensor(\r\n    target_time=time(8,01),\r\n    task_id='Initiating_start_time',\r\n    dag=dag)\r\n\r\n\r\ntask1_script=\"test.sh\"\r\ntask1_clicks_s = NWBashScriptOperator(\r\n    bash_script=task1_script,\r\n    script_args=[],\r\n    task_id='clicks_s',\r\n    dag=dag)\r\n\r\ntask1_clicks_s.set_upstream(task_start_job)\r\n```"},"comment":{"url":"https://api.github.com/repos/airbnb/airflow/issues/comments/156864054","html_url":"https://github.com/airbnb/airflow/issues/633#issuecomment-156864054","issue_url":"https://api.github.com/repos/airbnb/airflow/issues/633","id":156864054,"user":{"login":"puneethpotu","id":8812146,"avatar_url":"https://avatars.githubusercontent.com/u/8812146?v=3","gravatar_id":"","url":"https://api.github.com/users/puneethpotu","html_url":"https://github.com/puneethpotu","followers_url":"https://api.github.com/users/puneethpotu/followers","following_url":"https://api.github.com/users/puneethpotu/following{/other_user}","gists_url":"https://api.github.com/users/puneethpotu/gists{/gist_id}","starred_url":"https://api.github.com/users/puneethpotu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puneethpotu/subscriptions","organizations_url":"https://api.github.com/users/puneethpotu/orgs","repos_url":"https://api.github.com/users/puneethpotu/repos","events_url":"https://api.github.com/users/puneethpotu/events{/privacy}","received_events_url":"https://api.github.com/users/puneethpotu/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T22:20:50Z","updated_at":"2015-11-15T22:20:50Z","body":"Thanks for the response. The heartbeat setting is set to ```scheduler_heartbeat_sec = 5```. I think this is related to a different issue. On the celery worker the number of tasks to be executed is to 32. So though scheduler is kicking of the jobs worker was not firing them. We changed that setting to 64 and now the jobs ran fine!! Please let me know if we need to modify any other settings related to worker!\r\n\r\nThanks"}}