You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2021/09/09 15:44:11 UTC
[airavata-data-lake] branch master updated: Overriding notification
occurred time to be more accurate
This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-data-lake.git
The following commit(s) were added to refs/heads/master by this push:
new 1d4d432 Overriding notification occurred time to be more accurate
1d4d432 is described below
commit 1d4d4320e4cb67676fd9cdae404ec5176367afb6
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Thu Sep 9 11:43:55 2021 -0400
Overriding notification occurred time to be more accurate
---
.../dataorchestrator/messaging/model/NotificationEventSerializer.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/data-orchestrator/data-orchestrator-messaging/src/main/java/org/apache/airavata/dataorchestrator/messaging/model/NotificationEventSerializer.java b/data-orchestrator/data-orchestrator-messaging/src/main/java/org/apache/airavata/dataorchestrator/messaging/model/NotificationEventSerializer.java
index a98d477..19c6ed5 100644
--- a/data-orchestrator/data-orchestrator-messaging/src/main/java/org/apache/airavata/dataorchestrator/messaging/model/NotificationEventSerializer.java
+++ b/data-orchestrator/data-orchestrator-messaging/src/main/java/org/apache/airavata/dataorchestrator/messaging/model/NotificationEventSerializer.java
@@ -25,6 +25,7 @@ public class NotificationEventSerializer implements Serializer<NotificationEvent
try {
Gson gson = new Gson();
+ notificationEvent.setOccuredTime(System.currentTimeMillis());
return gson.toJson(notificationEvent).getBytes(StandardCharsets.UTF_8);
} catch (Exception e) {
LOGGER.error("Failed to serialize message {}. So returning null", s, e);