Spaces:
Sleeping
Sleeping
Update src/events.py
Browse files- src/events.py +1 -1
src/events.py
CHANGED
|
@@ -52,7 +52,7 @@ async def publish_task_event(event_type: str, task: Task):
|
|
| 52 |
event = {
|
| 53 |
"event_id": str(uuid.uuid4()),
|
| 54 |
"event_type": event_type,
|
| 55 |
-
"timestamp": datetime.
|
| 56 |
"user_id": str(user_id), # Convert to string for consistency
|
| 57 |
"task_id": getattr(task, 'id', 0), # Assuming id exists on task
|
| 58 |
"task_data": {
|
|
|
|
| 52 |
event = {
|
| 53 |
"event_id": str(uuid.uuid4()),
|
| 54 |
"event_type": event_type,
|
| 55 |
+
"timestamp": datetime.now(datetime.UTC).isoformat() + "Z",
|
| 56 |
"user_id": str(user_id), # Convert to string for consistency
|
| 57 |
"task_id": getattr(task, 'id', 0), # Assuming id exists on task
|
| 58 |
"task_data": {
|