-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 synced local 'skyvern/' with remote 'skyvern/'
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Adds a WebSocket endpoint for streaming workflow run data with authentication, streaming logic, and error handling in `streaming.py`. > > - **New Feature**: > - Adds `workflow_run_streaming` WebSocket endpoint in `streaming.py` for streaming workflow run data. > - **Authentication**: > - Validates `apikey` or `token` for organization access. > - Sends error message if credentials are invalid. > - **Streaming Logic**: > - Streams workflow run data if status is `running`. > - Sends base64-encoded screenshot if available. > - Closes connection if no activity for 5 minutes or if workflow run is in a final state. > - **Error Handling**: > - Handles `ValidationError`, `WebSocketDisconnect`, and `ConnectionClosedOK` exceptions with appropriate logging and messaging. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 5998bf39c47d0e092a3245e6ef732209c44a2636. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
1 changed file
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters