Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint to API Server deployments resource to get event stream using client's get_task_result_stream method. #296

Open
Tracked by #289
nerdai opened this issue Oct 8, 2024 · 0 comments · May be fixed by #301
Assignees

Comments

@nerdai
Copy link
Contributor

nerdai commented Oct 8, 2024

(The control plane already consumes the stream messages from the Workflow services and emits SSE using FastAPI StreamingResponse)

Implement the equivalent of what we have in workflows:

handler = workflow.run()
async for event in handler.stream_events():
    # do something with event
    pass

for Llama Deploy through the API Server, something like GET http://apiserver.local/my-deployment/events

Acceptance Criteria

  • there is an endpoint in the API Server that allows user to get events streamed from a task
@nerdai nerdai self-assigned this Oct 8, 2024
@nerdai nerdai changed the title Add endpoint to API Server deployments resource to get event stream using client's get_task_result_stream method. (The control plane already consumes the stream messages from the Workflow services and emits SSE using FastAPI StreamingResponse) Add endpoint to API Server deployments resource to get event stream using client's get_task_result_stream method. Oct 8, 2024
@nerdai nerdai linked a pull request Oct 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant