{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/airflow/issues/343","labels_url":"https://api.github.com/repos/airbnb/airflow/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/airflow/issues/343/comments","events_url":"https://api.github.com/repos/airbnb/airflow/issues/343/events","html_url":"https://github.com/airbnb/airflow/issues/343","id":104206771,"number":343,"title":"Seems dependencies accross Dags don't work ?","user":{"login":"tonylee0329","id":1519422,"avatar_url":"https://avatars.githubusercontent.com/u/1519422?v=3","gravatar_id":"","url":"https://api.github.com/users/tonylee0329","html_url":"https://github.com/tonylee0329","followers_url":"https://api.github.com/users/tonylee0329/followers","following_url":"https://api.github.com/users/tonylee0329/following{/other_user}","gists_url":"https://api.github.com/users/tonylee0329/gists{/gist_id}","starred_url":"https://api.github.com/users/tonylee0329/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonylee0329/subscriptions","organizations_url":"https://api.github.com/users/tonylee0329/orgs","repos_url":"https://api.github.com/users/tonylee0329/repos","events_url":"https://api.github.com/users/tonylee0329/events{/privacy}","received_events_url":"https://api.github.com/users/tonylee0329/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T07:49:20Z","updated_at":"2015-09-01T07:55:34Z","closed_at":null,"body":"I'm trying to set upstream task in upstream_dag,downstream task in downstream_dag.\r\nBut it seems it does not work.\r\n\r\n* upstream\r\n```python\r\nfrom datetime import datetime, timedelta\r\n\r\nfrom airflow.operators import BashOperator, EmailOperator\r\nfrom airflow.models import DAG\r\n\r\nargs = {\r\n    'owner': 'tony',\r\n    'start_date': datetime.strptime('2015-09-01 00:00:00', '%Y-%m-%d %H:%M:%S'),\r\n    'email': ['xxx'],\r\n    'email_on_failure': True,\r\n    'email_on_retry': True,\r\n    'retries': 3,\r\n    'retry_interval': timedelta(minutes=5),\r\n    'schedule_interval': timedelta(minutes=5),\r\n}\r\n\r\ndag = DAG(dag_id='upstream_dag', default_args=args)\r\n\r\nETL_HOME = '/home/prod/deepdive'\r\nstep_one = BashOperator(\r\n    task_id='upstream',\r\n    bash_command=(\r\n        \"export ETL_HOME=%(ETL_HOME)s; \"\r\n        \" echo \"upstream,${ETL_HOME}\" \"\r\n    ) % {\r\n        'ETL_HOME': ETL_HOME,\r\n    },\r\ndag=dag)\r\n```\r\n\r\n* downstream\r\n```python\r\nfrom datetime import datetime, timedelta\r\n\r\nfrom airflow.operators import BashOperator, EmailOperator\r\nfrom airflow.models import DAG\r\nfrom upstream import step_one as up_task\r\n\r\nargs = {\r\n    'owner': 'tony',\r\n    'start_date': datetime.strptime('2015-09-01 00:00:00', '%Y-%m-%d %H:%M:%S'),\r\n    'email': MAIL_TO,\r\n    'email_on_failure': True,\r\n    'email_on_retry': True,\r\n    'retries': 3,\r\n    'retry_interval': timedelta(minutes=5),\r\n    'schedule_interval': timedelta(minutes=5),\r\n}\r\n\r\ndag = DAG(dag_id='downstream_dag', default_args=args)\r\n\r\nETL_HOME = '/home/prod/deepdive'\r\ndown = BashOperator(\r\n    task_id='donwstream',\r\n    bash_command=(\r\n        \"export ETL_HOME=%(ETL_HOME)s; \"\r\n        \" echo \"downstream_dag\" \"\r\n    ) % {\r\n        'ETL_HOME': ETL_HOME,\r\n    },\r\ndag=dag)\r\n\r\ndown.set_upstream(up_task)\r\n```\r\nIt will log out :\r\n[2015-09-01 15:38:16,983] {models.py:778} WARNING - Dependencies not met yet\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/airbnb/airflow/issues/comments/136620344","html_url":"https://github.com/airbnb/airflow/issues/343#issuecomment-136620344","issue_url":"https://api.github.com/repos/airbnb/airflow/issues/343","id":136620344,"user":{"login":"jomar83","id":13132734,"avatar_url":"https://avatars.githubusercontent.com/u/13132734?v=3","gravatar_id":"","url":"https://api.github.com/users/jomar83","html_url":"https://github.com/jomar83","followers_url":"https://api.github.com/users/jomar83/followers","following_url":"https://api.github.com/users/jomar83/following{/other_user}","gists_url":"https://api.github.com/users/jomar83/gists{/gist_id}","starred_url":"https://api.github.com/users/jomar83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jomar83/subscriptions","organizations_url":"https://api.github.com/users/jomar83/orgs","repos_url":"https://api.github.com/users/jomar83/repos","events_url":"https://api.github.com/users/jomar83/events{/privacy}","received_events_url":"https://api.github.com/users/jomar83/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T07:55:34Z","updated_at":"2015-09-01T07:55:34Z","body":"For cross dag dependencies, use ExternalTaskSensor, it allows you to wait for task completion within a different dag  "}}