cortexgrid 0.3.12__tar.gz → 0.3.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/PKG-INFO +1 -1
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/jobs.py +3 -3
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/pyproject.toml +1 -1
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/.gitignore +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/LICENSE +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/__init__.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/_bundle.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/_model_scheduler.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/_ray_job_driver.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/_serve_entry.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/checkpoint.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/experiment.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/infra.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/mlflow_util.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/__init__.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/application_spec.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/deployment_key.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/deployment_records.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/lifecycle.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/placement.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/registry_tags.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/serve_bundle.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_serving/status.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/model_storage.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/py.typed +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/ray_util.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/s3_util.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/secrets.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/serve.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/cortexgrid/state.py +0 -0
- {cortexgrid-0.3.12 → cortexgrid-0.3.13}/docs/cortexgrid/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cortexgrid
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.13
|
|
4
4
|
Summary: Connect your ML code to the RoboLab compute cluster — Ray, MLflow, and S3
|
|
5
5
|
Project-URL: Homepage, https://github.com/robodatalab/cortexgrid
|
|
6
6
|
Project-URL: Repository, https://github.com/robodatalab/cortexgrid
|
|
@@ -29,7 +29,7 @@ from pydantic import BaseModel, ConfigDict
|
|
|
29
29
|
log = logging.getLogger(__name__)
|
|
30
30
|
|
|
31
31
|
_JOB_POLL_INTERVAL_S = 5.0
|
|
32
|
-
|
|
32
|
+
TERMINAL_JOB_STATES = (JobStatus.FINISHED, JobStatus.FAILED, JobStatus.STOPPED)
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class JobFailed(RuntimeError):
|
|
@@ -379,7 +379,7 @@ def wait_for_job_result(run_id: str, job_id: str, timeout: float | None = None)
|
|
|
379
379
|
)
|
|
380
380
|
ray_job_id = lifecycle.get_ray_job_id()
|
|
381
381
|
status = get_ray_job_status(ray_job_id)
|
|
382
|
-
if status in
|
|
382
|
+
if status in TERMINAL_JOB_STATES:
|
|
383
383
|
try:
|
|
384
384
|
result = JobResult.load_from_mlflow(run_id, job_id)
|
|
385
385
|
except FileNotFoundError:
|
|
@@ -413,7 +413,7 @@ class JobFuture:
|
|
|
413
413
|
|
|
414
414
|
def done(self) -> bool:
|
|
415
415
|
"""True once Ray reports the job finished, failed or stopped."""
|
|
416
|
-
return self.status() in
|
|
416
|
+
return self.status() in TERMINAL_JOB_STATES
|
|
417
417
|
|
|
418
418
|
def result(self, timeout: float | None = None) -> Any:
|
|
419
419
|
"""Block until the job finishes and return its function's value.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|