Closed tchaton closed 2 weeks ago
Attach a Lightning Studio which is fully reproducible (code, dependencies, environment, etc...) to reproduce this:
from litserve import LitAPI, LitServer class DebugLitAPI(LitAPI): def setup(self, device): raise Exception def predict(self, inputs): return None if __name__ == "__main__": api = DebugLitAPI() server = LitServer(api, accelerator='auto', devices='auto', workers_per_device=2) server.run(port=8000)
Instead, it should return exit code error 1.
If you published a Studio with your bug report, we can automatically get this information. Otherwise, please describe:
conda
pip
seems to be the same as #293
I'd like to improve that, @aniketmaurya, anything I should take into account when working on it?
sure go ahead @grumpyp!! we call lit_api.setup here. Probably we can do a check if the started workers successfully called setup or not here.
lit_api.setup
š Bug
To Reproduce
Attach a Lightning Studio which is fully reproducible (code, dependencies, environment, etc...) to reproduce this:
Instead, it should return exit code error 1.
Code sample
Expected behavior
Environment
If you published a Studio with your bug report, we can automatically get this information. Otherwise, please describe:
conda
,pip
, source):Additional context