Skip to content

Conversation

@digaobarbosa
Copy link
Contributor

Description

When using workspace_name + workflow_id for WebRTC initialization, Modal fetches the workflow_specification from the API but doesn't clear workspace_name and workflow_id afterward. T
his causes InferencePipeline.init_with_workflow() to fail on modal

inference/core/interfaces/stream/inference_pipeline.py:596

A request to initialize_webrtc_worker would fail if receiving workspace_name + workflow_id

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

locally - but it can be only sure on staging or with modal credentials

Any specific deployment considerations

none

Docs

  • Docs updated? What were the changes:

@digaobarbosa digaobarbosa self-assigned this Nov 27, 2025
@digaobarbosa digaobarbosa changed the title when runnning on modal we would get 500 for workspace id params when runnning on modal we get 500 for workspace id params Nov 27, 2025
@codeflash-ai
Copy link
Contributor

codeflash-ai bot commented Nov 28, 2025

⚡️ Codeflash found optimizations for this PR

📄 26% (0.26x) speedup for InferencePipeline.init_with_workflow in inference/core/interfaces/stream/inference_pipeline.py

⏱️ Runtime : 82.3 microseconds 65.1 microseconds (best of 5 runs)

A dependent PR with the suggested changes has been created. Please review:

If you approve, it will be merged into this PR (branch fix-modal-workspace-id-500).

Static Badge

@digaobarbosa digaobarbosa merged commit 61b659d into main Nov 28, 2025
43 of 47 checks passed
@digaobarbosa digaobarbosa deleted the fix-modal-workspace-id-500 branch November 28, 2025 17:47
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