Files

22 lines
1020 B
Plaintext
Raw Permalink Normal View History

2025-12-15 22:33:03 -05:00
# Where did the PyWorker code go?
2026-04-08 12:30:20 -07:00
We have moved the PyWorker source code into the `vastai` Python package.
2025-12-15 22:33:03 -05:00
You can install it with
```
2026-04-08 12:30:20 -07:00
pip install vastai
2025-12-15 22:33:03 -05:00
```
All of the source code can be found here:
2026-04-08 12:30:20 -07:00
https://github.com/vast-ai/vast-cli
2025-12-15 22:33:03 -05:00
And can be imported from vastai.serverless.server.lib
2026-04-08 12:30:20 -07:00
Serverless instances automatically run the start_server.sh script, which installs the vastai package.
2025-12-15 22:33:03 -05:00
This is how the PyWorker source code makes it onto your serverless instances.
You provide a worker.py file in your PYWORKER_REPO, and the start_server.sh will
create and run a PyWorker according to your configuration defined in the file.
While you can still create and run PyWorkers for serverless using your old PyWorker code,
we **strongly** encourage you to use the new worker.py configuration method, since
we can guarantee backwards compatibility for all your worker definitions. No more forking pyworker :)
If you encounter and issues with using PyWorker, please create a GitHub issue and we will be happy to assist.