You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an inconsistency in how working directories are handled between development (runpodctl project dev) and production (runpodctl project deploy / runpodctl project build) environments, which forces developers to implement path resolution workarounds in their handlers.
Current Behavior
In Development:
Working directory is set to project root: /runpod-volume/{uuid}/dev/<project>
Project structure is maintained (e.g., src/ directory)
Files can be accessed using paths relative to project root
In Production:
Working directory is changed to the handler's directory: /runpod-volume/{uuid}/prod/<project>/src
Forces developers to use different path resolution for asset files that exist directly in the repo
Current Workaround
Developers must add path resolution code to their handlers, for example to load a model that is part of same repo as the worker:
There's an inconsistency in how working directories are handled between development (
runpodctl project dev
) and production (runpodctl project deploy
/runpodctl project build
) environments, which forces developers to implement path resolution workarounds in their handlers.Current Behavior
In Development:
/runpod-volume/{uuid}/dev/<project>
src/
directory)In Production:
/runpod-volume/{uuid}/prod/<project>/src
Current Workaround
Developers must add path resolution code to their handlers, for example to load a model that is part of same repo as the worker:
Expected Behavior
The working directory should be consistent between development and production environments. Either:
Impact
The text was updated successfully, but these errors were encountered: