mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-09 19:58:29 +00:00
refactor: simplify job status extraction a bit
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
parent
6b1773d530
commit
80070b966a
1 changed files with 1 additions and 3 deletions
|
@ -119,9 +119,7 @@ class TorchtunePostTrainingImpl:
|
|||
|
||||
@webmethod(route="/post-training/job/status")
|
||||
async def get_training_job_status(self, job_uuid: str) -> Optional[PostTrainingJobStatusResponse]:
|
||||
if job_uuid in self.jobs_status:
|
||||
return self.jobs_status[job_uuid]
|
||||
return None
|
||||
return self.jobs_status.get(job_uuid, None)
|
||||
|
||||
@webmethod(route="/post-training/job/cancel")
|
||||
async def cancel_training_job(self, job_uuid: str) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue