anyscale 0.26.1__py3-none-any.whl → 0.26.2__py3-none-any.whl

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.
Files changed (30) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +13 -1
  2. anyscale/_private/anyscale_client/common.py +1 -1
  3. anyscale/_private/docgen/models.md +2 -2
  4. anyscale/client/README.md +10 -0
  5. anyscale/client/openapi_client/__init__.py +9 -0
  6. anyscale/client/openapi_client/api/default_api.py +112 -0
  7. anyscale/client/openapi_client/models/__init__.py +9 -0
  8. anyscale/client/openapi_client/models/actor_status.py +100 -0
  9. anyscale/client/openapi_client/models/baseimagesenum.py +59 -1
  10. anyscale/client/openapi_client/models/job_details.py +173 -0
  11. anyscale/client/openapi_client/models/resource_alert_event_type.py +2 -1
  12. anyscale/client/openapi_client/models/run_attempt_status.py +103 -0
  13. anyscale/client/openapi_client/models/run_status.py +106 -0
  14. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +59 -1
  15. anyscale/client/openapi_client/models/train_resources.py +121 -0
  16. anyscale/client/openapi_client/models/train_run.py +387 -0
  17. anyscale/client/openapi_client/models/train_run_attempt.py +308 -0
  18. anyscale/client/openapi_client/models/train_worker.py +363 -0
  19. anyscale/client/openapi_client/models/trainrun_list_response.py +147 -0
  20. anyscale/sdk/anyscale_client/models/baseimagesenum.py +59 -1
  21. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +59 -1
  22. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  23. anyscale/version.py +1 -1
  24. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/METADATA +1 -1
  25. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/RECORD +30 -21
  26. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/LICENSE +0 -0
  27. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/NOTICE +0 -0
  28. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/WHEEL +0 -0
  29. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/entry_points.txt +0 -0
  30. {anyscale-0.26.1.dist-info → anyscale-0.26.2.dist-info}/top_level.txt +0 -0
@@ -428,7 +428,19 @@ class AnyscaleClient(AnyscaleClientInterface):
428
428
  Defaults to `None`.
429
429
  name: The name of the project.
430
430
  """
431
- # Find if project with name already exists
431
+ # First try to find project by name and parent cloud id
432
+ if parent_cloud_id is not None and name is not None:
433
+ response = self._external_api_client.search_projects(
434
+ {
435
+ "name": {"equals": name,},
436
+ "parent_cloud_id": {"equals": parent_cloud_id,},
437
+ }
438
+ )
439
+ if response.results:
440
+ # Project name is unique within a cloud, so we can just return the first result
441
+ return response.results[0].id
442
+
443
+ # Then find if project with name already exists
432
444
  matching_projects = self._internal_api_client.find_project_by_project_name_api_v2_projects_find_by_name_get(
433
445
  name
434
446
  ).results
@@ -49,7 +49,7 @@ from anyscale.utils.workspace_notification import WorkspaceNotification
49
49
  # Maybe just make it part of the release process to update it, or fetch the
50
50
  # default builds and get the latest one. The best thing to do is probably
51
51
  # to populate this in the backend.
52
- DEFAULT_RAY_VERSION = "2.42.1" # RAY_RELEASE_UPDATE: update to latest version.
52
+ DEFAULT_RAY_VERSION = "2.43.0" # RAY_RELEASE_UPDATE: update to latest version.
53
53
  DEFAULT_PYTHON_VERSION = "py311"
54
54
  RUNTIME_ENV_PACKAGE_FORMAT = "pkg_{content_hash}.zip"
55
55