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 2022/01/25 08:09:27 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #19640: clear task's next_method and next_kwargs when clear the task

uranusjr commented on a change in pull request #19640:
URL: https://github.com/apache/airflow/pull/19640#discussion_r791450619



##########
File path: airflow/models/taskinstance.py
##########
@@ -204,6 +204,7 @@ def clear_task_instances(
                 ti.max_tries = max(ti.max_tries, ti.prev_attempted_tries)
             ti.state = State.NONE
             ti.external_executor_id = None
+            ti.clear_next_method_args()

Review comment:
       Some additional asserts in `TestClearTasks` should be good enough.




-- 
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-unsubscribe@airflow.apache.org

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