Repository navigation
Fix initialize forgeapp streaming - #3
joseluisll wants to merge 22 commits into
Conversation
…ndecies to the Dockerfile of the backend
…-initialize-forgeapp-streaming
…m/joseluisll/skyvern into fix-initialize-forgeapp-streaming
No need for using the shell, call the script directly
It is obsolete, not used any more. The functionality is incorporated into the Streaming service.
|
@OpenHands please fix the errors reported by the failing check. |
|
I'm on it! joseluisll can track my progress at all-hands.dev |
Capture streaming_service in a local variable before defining closures to satisfy mypy's type narrowing for StreamingService | None. Co-authored-by: openhands <openhands@all-hands.dev>
SummaryI fixed the failing CI check for PR #3 "Fix initialize forgeapp streaming". The issue was a mypy type error in Root CauseThe FixCaptured the streaming service in a local variable before defining the closures, allowing mypy to properly narrow the type: if app.STREAMING_SERVICE:
# Capture the streaming service in a local variable for the closures
streaming_service = app.STREAMING_SERVICE
async def _startup_event(fastapi_app: FastAPI) -> None:
streaming_service.start_monitoring() # Now uses local variable
async def _shutdown_event() -> None:
await streaming_service.stop_monitoring() # Now uses local variableVerification
The fix has been pushed and should trigger a new CI run that passes the pre-commit hooks. |
No description provided.