You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ya...@apache.org on 2025/07/14 14:31:30 UTC
(airavata) branch master updated (dd2d815106 -> a1e6a88508)
This is an automated email from the ASF dual-hosted git repository.
yasith pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
discard dd2d815106 use current timestsamp when saving process statuses
new a1e6a88508 use current timestsamp when saving process statuses
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (dd2d815106)
\
N -- N -- N refs/heads/master (a1e6a88508)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../registry/core/entities/expcatalog/ProcessStatusEntity.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(airavata) 01/01: use current timestsamp when saving process statuses
Posted by ya...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
yasith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
commit a1e6a88508aabeb2a2d768d2ac4486e6187d71b6
Author: yasithdev <ya...@icloud.com>
AuthorDate: Mon Jul 14 09:03:16 2025 -0500
use current timestsamp when saving process statuses
---
.../registry/core/entities/expcatalog/ProcessStatusEntity.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/airavata-api/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessStatusEntity.java b/airavata-api/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessStatusEntity.java
index 637ea193e0..57282bef00 100644
--- a/airavata-api/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessStatusEntity.java
+++ b/airavata-api/src/main/java/org/apache/airavata/registry/core/entities/expcatalog/ProcessStatusEntity.java
@@ -105,4 +105,11 @@ public class ProcessStatusEntity implements Serializable {
public void setProcess(ProcessEntity process) {
this.process = process;
}
+
+ @PrePersist
+ protected void onCreate() {
+ if (this.timeOfStateChange == null || this.timeOfStateChange.getTime() == 0) {
+ this.timeOfStateChange = new Timestamp(System.currentTimeMillis());
+ }
+ }
}