Skip to content

Conversation

@vchan
Copy link
Contributor

@vchan vchan commented Feb 10, 2023

The events endpoint is a more generic SSE endpoint for SQLMesh console outputs. It will replace the tasks SSE endpoint.

@vchan vchan force-pushed the vchan/events-endpoint branch from 05af0de to 928db96 Compare February 10, 2023 21:49
self.current_task_status[snapshot_name]["end"] = int(time.time())
self.queue.put_nowait(
{
"event": "tasks",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use pydantic here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea.

{
"ok": True,
"tasks": self.current_task_status,
"timestamp": int(time.time()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utils/date#now_timestamp we always use millis int

@vchan vchan merged commit 73ffb09 into main Feb 10, 2023
@vchan vchan deleted the vchan/events-endpoint branch February 10, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants