Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/lb_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

from logger import setup_logging
from unpack_volume import maybe_unpack
from runpod_flash.protos.remote_execution import FunctionRequest, FunctionResponse
from remote_executor import RemoteExecutor

# Initialize logging configuration
setup_logging()
Expand All @@ -39,6 +37,11 @@
# This is a no-op for Live Serverless and local development
maybe_unpack()

# Import from bundled /app/runpod_flash (no system package)
# These imports must happen AFTER maybe_unpack() so /app is in sys.path
from runpod_flash.protos.remote_execution import FunctionRequest, FunctionResponse # noqa: E402
from remote_executor import RemoteExecutor # noqa: E402

# Determine mode based on environment variables
is_mothership = os.getenv("FLASH_IS_MOTHERSHIP") == "true"

Expand Down
Loading
Loading