yuqi1129 commented on code in PR #12497:
URL: https://github.com/apache/gravitino/pull/12497#discussion_r3804618391


##########
api/src/main/java/org/apache/gravitino/job/JobHandle.java:
##########
@@ -69,4 +71,13 @@ enum Status {
    * @return the status of the job
    */
   Status jobStatus();
+
+  /**
+   * Get the time when the job finished execution.
+   *
+   * @return the finished time of the job, or null if the job has not finished 
execution yet
+   */
+  default Instant finishedAt() {

Review Comment:
   Better to add `@Nullable`.



##########
api/src/main/java/org/apache/gravitino/job/JobHandle.java:
##########
@@ -69,4 +71,13 @@ enum Status {
    * @return the status of the job
    */
   Status jobStatus();
+
+  /**
+   * Get the time when the job finished execution.
+   *
+   * @return the finished time of the job, or null if the job has not finished 
execution yet
+   */
+  default Instant finishedAt() {

Review Comment:
   JobInfo.finishedAt()、JobEntity.finishedAtAsInstant() also share the same 
issue.



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