yuqian90 opened a new issue #16163:
URL: https://github.com/apache/airflow/issues/16163


   **Apache Airflow version**: 1.10.* / 2.0.* / 2.1.*
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl 
version`): Any
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: Any
   - **OS** (e.g. from /etc/os-release): Any
   - **Kernel** (e.g. `uname -a`): Any
   - **Install tools**: Any
   - **Others**: N/A
   
   **What happened**:
   
   This line in the TaskInstance log is very misleading. It seems to happen for 
tasks that take longer than one hour. When users are waiting for tasks to 
finish and see this in the log, they often get confused. They may think 
something is wrong with their task or with Airflow. In fact, this line is 
harmless. The scheduler is simply saying "the TaskInstance is already running 
so it cannot be run again". 
   
   ```
   {taskinstance.py:874} INFO - Dependencies not met for <TaskInstance: ... 
[running]>, dependency 'Task Instance Not Running' FAILED: Task is in the 
running state
   {taskinstance.py:874} INFO - Dependencies not met for <TaskInstance: ... 
[running]>, dependency 'Task Instance State' FAILED: Task is in the 'running' 
state which is not a valid state for execution. The task must be cleared in 
order to be run.
   ```
   
   **What you expected to happen**:
   
   The confusion is unnecessary. This line should be silenced in the log. Or it 
should log something clearer.
   
   **How to reproduce it**:
   
   Any task that takes more than an hour to run has this line in the log.


-- 
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:
[email protected]


Reply via email to