From f1992cad35d7194796c9a212d982928de00269f7 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Thu, 11 Apr 2024 10:35:51 +0100 Subject: [PATCH] ENH: Add `datetime` attribute to all events skipci --- octue/cloud/pub_sub/service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/octue/cloud/pub_sub/service.py b/octue/cloud/pub_sub/service.py index 5abd17ac4..054d8c255 100644 --- a/octue/cloud/pub_sub/service.py +++ b/octue/cloud/pub_sub/service.py @@ -467,6 +467,7 @@ def _emit_event(self, event, originator, recipient, order, attributes=None, time with emit_event_lock: attributes["order"] = int(order) + attributes["datetime"] = datetime.datetime.utcnow().isoformat() converted_attributes = {} for key, value in attributes.items():