amoghrajesh commented on code in PR #73889:
URL: https://github.com/apache/airflow/pull/73889#discussion_r4375094492


##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/task_instances.py:
##########
@@ -94,7 +94,7 @@ class TaskInstanceResponse(BaseModel):
         default=None,
         validation_alias="retry_reason",
         description=(
-            "The reason the task instance reached its current state, as 
recorded by a retry policy. May describe a previous attempt: it is cleared only 
when the task next starts running, so a task waiting to be retried or re-run 
can still carry the reason its last attempt ended."
+            "The reason the task instance reached its current state, as 
recorded by a retry policy. Describes the attempt that is currently recorded on 
the row: it is cleared when the task is cleared and when the next attempt is 
scheduled or deferred."

Review Comment:
   Ah yes, made it clearer.



##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/task_instance_history.py:
##########
@@ -68,7 +68,7 @@ class TaskInstanceHistoryResponse(BaseModel):
         default=None,
         validation_alias="retry_reason",
         description=(
-            "The reason the task instance reached its current state, as 
recorded by a retry policy. May describe a previous attempt: it is cleared only 
when the task next starts running, so a task waiting to be retried or re-run 
can still carry the reason its last attempt ended."
+            "The reason the task instance reached its current state, as 
recorded by a retry policy. Describes the attempt that is currently recorded on 
the row: it is cleared when the task is cleared and when the next attempt is 
scheduled or deferred."

Review Comment:
   Agreed, the clearing wording made no sense there. Now its own: "The reason 
this try ended, as recorded by a retry policy."
   
   



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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to