crabio commented on issue #35354:
URL: https://github.com/apache/airflow/issues/35354#issuecomment-1790365264

   Also we figured out that some time tasks failed without any reason and 
without retries.
   
   ```log
   [2023-11-02T03:13:05.686+0000] {taskinstance.py:1441} 
WARNING - cannot record scheduled_duration for task AAA because previous 
state change time has not been saved
   [2023-11-02T03:13:05.686+0000] {base_executor.py:144} 
INFO - Adding to queue: ['airflow', 'tasks', 'run', 'AAA', 'AAA', 
'scheduled__2023-11-02T02:00:00+00:00', '--local', '--subdir', 
'DAGS_FOLDER/dags/AAA.py']
   [2023-11-02T03:13:05.686+0000] 
{scheduler_job_runner.py:636} INFO - Sending 
TaskInstanceKey(dag_id='AAA', task_id='AAA', 
run_id='scheduled__2023-11-02T02:00:00+00:00', try_number=1, map_index=-1) to 
executor with priority 1 and queue default
   [2023-11-02T03:13:05.691+0000] 
{kubernetes_executor.py:312} INFO - Add task 
TaskInstanceKey(dag_id='AAA', task_id='AAA', 
run_id='scheduled__2023-11-02T02:00:00+00:00', try_number=1, map_index=-1) with 
command ['airflow', 'tasks', 'run', 'AAA', 'AAA', 
'scheduled__2023-11-02T02:00:00+00:00', '--local', '--subdir', 
'DAGS_FOLDER/dags/AAA.py']
   [2023-11-02T03:13:05.839+0000] 
{kubernetes_executor_utils.py:396} INFO - Creating kubernetes pod 
for job is TaskInstanceKey(dag_id='AAA', task_id='AAA', 
run_id='scheduled__2023-11-02T02:00:00+00:00', try_number=1, map_index=-1), 
with pod name AAA-783qadx4, annotations: <omitted>
   [2023-11-02T03:13:06.120+0000] 
{scheduler_job_runner.py:686} INFO - Received executor event with 
state queued for task instance TaskInstanceKey(dag_id='AAA', task_id='AAA', 
run_id='scheduled__2023-11-02T02:00:00+00:00', try_number=1, map_index=-1)
   [2023-11-02T03:14:23.708+0000] 
{kubernetes_executor.py:356} INFO - Changing state of 
(TaskInstanceKey(dag_id='AAA', task_id='AAA', 
run_id='scheduled__2023-11-02T02:00:00+00:00', try_number=1, map_index=-1), 
<TaskInstanceState.FAILED: 'failed'>, 'AAA-783qadx4', '520667263') to failed
   [2023-11-02T03:14:23.715+0000] 
{kubernetes_executor.py:441} INFO - Deleted pod: 
TaskInstanceKey(dag_id='AAA', task_id='AAA', 
run_id='scheduled__2023-11-02T02:00:00+00:00', try_number=1, map_index=-1) in 
namespace BBB
   [2023-11-02T03:14:23.725+0000] 
{scheduler_job_runner.py:686} INFO - Received executor event with 
state failed for task instance TaskInstanceKey(dag_id='AAA', task_id='AAA', 
run_id='scheduled__2023-11-02T02:00:00+00:00', try_number=1, map_index=-1)
   [2023-11-02T03:14:23.787+0000] 
{scheduler_job_runner.py:723} INFO - TaskInstance Finished: 
dag_id=AAA, task_id=AAA, run_id=scheduled__2023-11-02T02:00:00+00:00, 
map_index=-1, run_start_date=None, run_end_date=None, run_duration=None, 
state=queued, executor_state=failed, try_number=1, max_tries=0, job_id=None, 
pool=pool, queue=default, priority_weight=1, operator=CustomOperator, 
queued_dttm=2023-11-02 03:13:05.681227+00:00, queued_by_job_id=166781, 
pid=None
   ```
   
   But in next run this task succeed.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

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

Reply via email to