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

workflow run streaming API #887

Merged
merged 2 commits into from
Sep 30, 2024
Merged

workflow run streaming API #887

merged 2 commits into from
Sep 30, 2024

Commits on Sep 30, 2024

  1. 🔄 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 -->
    ykeremy committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    d7b6cb4 View commit details
    Browse the repository at this point in the history
  2. fix bug

    wintonzheng committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    e932ccc View commit details
    Browse the repository at this point in the history