You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/05 01:06:24 UTC

[GitHub] [airflow] EunSeop opened a new issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

EunSeop opened a new issue #15196:
URL: https://github.com/apache/airflow/issues/15196


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 2.0.1
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): not used
   
   **Environment**: Mac os(Catalina)
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release): Mac os(Catalina)
   - **Kernel** (e.g. `uname -a`): `Darwin AL01590440.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64`
   - **Install tools**: pyenv, pip 
   - **Others**: python 3.6.13
   
   **What happened**: 
   Example task of externaltasksensor doesn't work. 
   `example_external_task_marker_child` is never success even I tried `example_external_task_marker_parent` at the same time. 
   And finally, `example_external_task_marker_child` become failed due to timeout. 
   
   
   **How to reproduce it**:
   - install python 3.6.13 using pyenv
   - install latest airflow(2.0.1)
   - setup db(default, maybe sqlite?), and add user, start scheduler, and run webserver
   - trigger `example_external_task_marker_child` and `example_external_task_marker_parent` at the same time,
   - Also tried `example_external_task_marker_parent` and `example_external_task_marker_child` but it shows same situation.
   
   
   
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   ![image](https://user-images.githubusercontent.com/6908807/113526783-48c07d00-95f6-11eb-9889-df1a85f159d3.png)
   
   **Anything else we need to know**:
   Also had same situation in `CentOS Linux release 7.4.1708`.
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] DenisOgr commented on issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
DenisOgr commented on issue #15196:
URL: https://github.com/apache/airflow/issues/15196#issuecomment-836660611


   @EunSeop how did you set DAG schedule so that it worked? 
   I set up `schedule_interval='@weekly',`  cleaned database, and turned on the  DAGs: `example_external_task_marker_parent` and `example_external_task_marker_child`. After that my scheduler failed with the error: `AttributeError: 'TaskInstance' object has no attribute 'task'`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] EunSeop commented on issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
EunSeop commented on issue #15196:
URL: https://github.com/apache/airflow/issues/15196#issuecomment-813138443


   Got same situation on `apache-airflow==1.10.14`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] EunSeop commented on issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
EunSeop commented on issue #15196:
URL: https://github.com/apache/airflow/issues/15196#issuecomment-813169031


   It's working after set schedule.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] EunSeop closed issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
EunSeop closed issue #15196:
URL: https://github.com/apache/airflow/issues/15196


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] EunSeop commented on issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
EunSeop commented on issue #15196:
URL: https://github.com/apache/airflow/issues/15196#issuecomment-813143367


   Did I missing any setup of airflow? same situation on `python==3.7.10` & `apache-airflow==2.0.1`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] EunSeop commented on issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
EunSeop commented on issue #15196:
URL: https://github.com/apache/airflow/issues/15196#issuecomment-837608306


   @DenisOgr I never saw that message. Airflow 2.0 is not perfectly support python 3.6, so I decided upgrade python version using pyenv. Please check airflow and python versions. 
   And to make run ExternalTaskSensor, if we decided use `schedule_interval='@weekly'`, then `start_date` should be over 7 days ago to make run immediately. Or can use airflow dags cli to run 2 dags at the same time. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] EunSeop edited a comment on issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
EunSeop edited a comment on issue #15196:
URL: https://github.com/apache/airflow/issues/15196#issuecomment-813143367


   Did I missing any setup for airflow? same situation on `python==3.7.10` & `apache-airflow==2.0.1`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #15196: ExternalTaskSensor not working python3.6 & airflow2.0.1

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #15196:
URL: https://github.com/apache/airflow/issues/15196#issuecomment-813131988


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org