Skip to content

Commit

Permalink
ENH: Add datetime attribute to all events
Browse files Browse the repository at this point in the history
skipci
  • Loading branch information
cortadocodes committed Apr 11, 2024
1 parent 9ec3f1f commit f1992ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions octue/cloud/pub_sub/service.py
Expand Up @@ -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():
Expand Down

0 comments on commit f1992ca

Please sign in to comment.