polyaxon 2.0.0rc27__py3-none-any.whl → 2.0.0rc29__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 (205) hide show
  1. polyaxon/api.py +4 -0
  2. polyaxon/auxiliaries/default_scheduling.py +1 -1
  3. polyaxon/auxiliaries/init.py +1 -1
  4. polyaxon/auxiliaries/sidecar.py +1 -1
  5. polyaxon/cli/operations.py +18 -2
  6. polyaxon/cli/services/docker.py +1 -1
  7. polyaxon/cli/services/initializer.py +1 -1
  8. polyaxon/client/run.py +23 -26
  9. polyaxon/compiler/contexts/contexts.py +0 -2
  10. polyaxon/compiler/contexts/service.py +14 -9
  11. polyaxon/compiler/resolver/agent.py +1 -1
  12. polyaxon/compiler/resolver/runtime.py +0 -1
  13. polyaxon/constants/metadata.py +1 -0
  14. polyaxon/deploy/schemas/auth.py +1 -1
  15. polyaxon/deploy/schemas/celery.py +1 -1
  16. polyaxon/deploy/schemas/deployment.py +7 -1
  17. polyaxon/deploy/schemas/email.py +1 -1
  18. polyaxon/deploy/schemas/ingress.py +1 -1
  19. polyaxon/deploy/schemas/intervals.py +1 -1
  20. polyaxon/deploy/schemas/operators.py +0 -1
  21. polyaxon/deploy/schemas/proxy.py +1 -1
  22. polyaxon/deploy/schemas/root_user.py +1 -1
  23. polyaxon/deploy/schemas/security_context.py +1 -1
  24. polyaxon/deploy/schemas/service.py +1 -1
  25. polyaxon/deploy/schemas/ssl.py +1 -1
  26. polyaxon/deploy/schemas/ui.py +1 -1
  27. polyaxon/docker/docker_types.py +1 -1
  28. polyaxon/env_vars/keys.py +0 -2
  29. polyaxon/k8s/converter/converters/__init__.py +0 -2
  30. polyaxon/k8s/converter/converters/dask_job.py +3 -0
  31. polyaxon/k8s/converter/mixins.py +0 -7
  32. polyaxon/k8s/custom_resources/dask_job.py +14 -2
  33. polyaxon/lifecycle.py +1 -1
  34. polyaxon/pkg.py +1 -1
  35. polyaxon/polyflow/__init__.py +0 -4
  36. polyaxon/polyflow/builds/__init__.py +1 -1
  37. polyaxon/polyflow/cache/__init__.py +1 -1
  38. polyaxon/polyflow/component/base.py +1 -1
  39. polyaxon/polyflow/component/component.py +1 -2
  40. polyaxon/polyflow/component/component_reference.py +1 -1
  41. polyaxon/polyflow/early_stopping/__init__.py +1 -1
  42. polyaxon/polyflow/early_stopping/policies.py +1 -1
  43. polyaxon/polyflow/environment/__init__.py +1 -1
  44. polyaxon/polyflow/events/__init__.py +1 -1
  45. polyaxon/polyflow/hooks/__init__.py +1 -1
  46. polyaxon/polyflow/init/__init__.py +1 -1
  47. polyaxon/polyflow/io/io.py +1 -1
  48. polyaxon/polyflow/joins/__init__.py +1 -1
  49. polyaxon/polyflow/matrix/__init__.py +1 -1
  50. polyaxon/polyflow/matrix/bayes.py +7 -1
  51. polyaxon/polyflow/matrix/grid_search.py +1 -1
  52. polyaxon/polyflow/matrix/hyperband.py +1 -1
  53. polyaxon/polyflow/matrix/hyperopt.py +1 -1
  54. polyaxon/polyflow/matrix/iterative.py +1 -1
  55. polyaxon/polyflow/matrix/mapping.py +1 -1
  56. polyaxon/polyflow/matrix/params.py +2 -2
  57. polyaxon/polyflow/matrix/random_search.py +1 -1
  58. polyaxon/polyflow/matrix/tuner.py +1 -1
  59. polyaxon/polyflow/mounts/artifacts_mounts.py +1 -1
  60. polyaxon/polyflow/notifications/__init__.py +1 -1
  61. polyaxon/polyflow/operations/base.py +1 -1
  62. polyaxon/polyflow/operations/operation.py +1 -2
  63. polyaxon/polyflow/optimization/__init__.py +1 -1
  64. polyaxon/polyflow/params/params.py +1 -1
  65. polyaxon/polyflow/plugins/__init__.py +1 -1
  66. polyaxon/polyflow/references/dag.py +1 -1
  67. polyaxon/polyflow/references/hub.py +1 -1
  68. polyaxon/polyflow/references/path.py +1 -1
  69. polyaxon/polyflow/references/url.py +1 -1
  70. polyaxon/polyflow/run/__init__.py +1 -13
  71. polyaxon/polyflow/run/dag.py +7 -1
  72. polyaxon/polyflow/run/dask/replica.py +1 -1
  73. polyaxon/polyflow/run/job.py +1 -1
  74. polyaxon/polyflow/run/kinds.py +14 -1
  75. polyaxon/polyflow/run/kubeflow/mpi_job.py +1 -1
  76. polyaxon/polyflow/run/kubeflow/mx_job.py +1 -1
  77. polyaxon/polyflow/run/kubeflow/paddle_job.py +1 -1
  78. polyaxon/polyflow/run/kubeflow/pytorch_job.py +1 -1
  79. polyaxon/polyflow/run/kubeflow/replica.py +1 -1
  80. polyaxon/polyflow/run/kubeflow/scheduling_policy.py +1 -1
  81. polyaxon/polyflow/run/kubeflow/tf_job.py +1 -1
  82. polyaxon/polyflow/run/kubeflow/xgboost_job.py +1 -1
  83. polyaxon/polyflow/run/patch.py +1 -7
  84. polyaxon/polyflow/run/ray/ray.py +1 -1
  85. polyaxon/polyflow/run/ray/replica.py +1 -1
  86. polyaxon/polyflow/run/resources.py +1 -1
  87. polyaxon/polyflow/run/service.py +1 -1
  88. polyaxon/polyflow/schedules/__init__.py +1 -1
  89. polyaxon/polyflow/schedules/cron.py +1 -1
  90. polyaxon/polyflow/schedules/datetime.py +1 -1
  91. polyaxon/polyflow/schedules/interval.py +1 -1
  92. polyaxon/polyflow/templates/__init__.py +1 -1
  93. polyaxon/polyflow/termination/__init__.py +2 -2
  94. polyaxon/schemas/api/authentication.py +1 -1
  95. polyaxon/schemas/api/home.py +1 -1
  96. polyaxon/schemas/api/installation.py +1 -1
  97. polyaxon/schemas/api/log_handler.py +1 -1
  98. polyaxon/schemas/api/resources.py +1 -1
  99. polyaxon/schemas/api/user.py +1 -1
  100. polyaxon/schemas/api/version.py +1 -1
  101. polyaxon/schemas/base.py +1 -1
  102. polyaxon/schemas/cli/agent_config.py +1 -1
  103. polyaxon/schemas/cli/cli_config.py +1 -1
  104. polyaxon/schemas/cli/client_config.py +1 -1
  105. polyaxon/schemas/responses/v1_activity.py +1 -1
  106. polyaxon/schemas/responses/v1_agent.py +1 -1
  107. polyaxon/schemas/responses/v1_agent_status_body_request.py +1 -1
  108. polyaxon/schemas/responses/v1_analytics_spec.py +1 -1
  109. polyaxon/schemas/responses/v1_artifact_tree.py +1 -1
  110. polyaxon/schemas/responses/v1_auth.py +1 -1
  111. polyaxon/schemas/responses/v1_cloning.py +1 -1
  112. polyaxon/schemas/responses/v1_connection_response.py +1 -1
  113. polyaxon/schemas/responses/v1_dashboard.py +1 -1
  114. polyaxon/schemas/responses/v1_entities_tags.py +1 -1
  115. polyaxon/schemas/responses/v1_entities_transfer.py +1 -1
  116. polyaxon/schemas/responses/v1_entity_notification_body.py +1 -1
  117. polyaxon/schemas/responses/v1_entity_stage_body_request.py +1 -1
  118. polyaxon/schemas/responses/v1_entity_status_body_request.py +1 -1
  119. polyaxon/schemas/responses/v1_list_activities_response.py +1 -1
  120. polyaxon/schemas/responses/v1_list_agents_response.py +1 -1
  121. polyaxon/schemas/responses/v1_list_bookmarks_response.py +1 -1
  122. polyaxon/schemas/responses/v1_list_connections_response.py +1 -1
  123. polyaxon/schemas/responses/v1_list_dashboards_response.py +1 -1
  124. polyaxon/schemas/responses/v1_list_organization_members_response.py +1 -1
  125. polyaxon/schemas/responses/v1_list_organizations_response.py +1 -1
  126. polyaxon/schemas/responses/v1_list_presets_response.py +1 -1
  127. polyaxon/schemas/responses/v1_list_project_versions_response.py +1 -1
  128. polyaxon/schemas/responses/v1_list_projects_response.py +1 -1
  129. polyaxon/schemas/responses/v1_list_queues_response.py +1 -1
  130. polyaxon/schemas/responses/v1_list_run_artifacts_response.py +1 -1
  131. polyaxon/schemas/responses/v1_list_run_connections_response.py +1 -1
  132. polyaxon/schemas/responses/v1_list_run_edges_response.py +1 -1
  133. polyaxon/schemas/responses/v1_list_runs_response.py +1 -1
  134. polyaxon/schemas/responses/v1_list_searches_response.py +1 -1
  135. polyaxon/schemas/responses/v1_list_service_accounts_response.py +1 -1
  136. polyaxon/schemas/responses/v1_list_tags_response.py +1 -1
  137. polyaxon/schemas/responses/v1_list_team_members_response.py +1 -1
  138. polyaxon/schemas/responses/v1_list_teams_response.py +1 -1
  139. polyaxon/schemas/responses/v1_list_token_response.py +1 -1
  140. polyaxon/schemas/responses/v1_operation_body.py +1 -1
  141. polyaxon/schemas/responses/v1_organization.py +1 -1
  142. polyaxon/schemas/responses/v1_organization_member.py +1 -1
  143. polyaxon/schemas/responses/v1_password_change.py +1 -1
  144. polyaxon/schemas/responses/v1_pipeline.py +1 -1
  145. polyaxon/schemas/responses/v1_preset.py +1 -1
  146. polyaxon/schemas/responses/v1_project.py +1 -1
  147. polyaxon/schemas/responses/v1_project_settings.py +1 -1
  148. polyaxon/schemas/responses/v1_project_user_access.py +1 -1
  149. polyaxon/schemas/responses/v1_project_version.py +1 -1
  150. polyaxon/schemas/responses/v1_queue.py +1 -1
  151. polyaxon/schemas/responses/v1_run.py +1 -1
  152. polyaxon/schemas/responses/v1_run_connection.py +1 -1
  153. polyaxon/schemas/responses/v1_run_reference_catalog.py +1 -1
  154. polyaxon/schemas/responses/v1_run_settings.py +1 -1
  155. polyaxon/schemas/responses/v1_search.py +1 -1
  156. polyaxon/schemas/responses/v1_search_spec.py +1 -1
  157. polyaxon/schemas/responses/v1_section_spec.py +1 -1
  158. polyaxon/schemas/responses/v1_service_account.py +1 -1
  159. polyaxon/schemas/responses/v1_settings_catalog.py +2 -1
  160. polyaxon/schemas/responses/v1_tag.py +1 -1
  161. polyaxon/schemas/responses/v1_team.py +1 -1
  162. polyaxon/schemas/responses/v1_team_member.py +1 -1
  163. polyaxon/schemas/responses/v1_token.py +1 -1
  164. polyaxon/schemas/responses/v1_trial_start.py +1 -1
  165. polyaxon/schemas/responses/v1_user.py +1 -1
  166. polyaxon/schemas/responses/v1_user_singup.py +1 -1
  167. polyaxon/schemas/services.py +1 -1
  168. polyaxon/schemas/types/artifacts.py +1 -1
  169. polyaxon/schemas/types/dockerfile.py +1 -1
  170. polyaxon/schemas/types/event.py +1 -1
  171. polyaxon/schemas/types/file.py +1 -1
  172. polyaxon/schemas/types/git.py +1 -1
  173. polyaxon/schemas/types/tensorboard.py +1 -1
  174. polyaxon/sdk/api/agents_v1_api.py +1 -1
  175. polyaxon/sdk/api/artifacts_stores_v1_api.py +1 -1
  176. polyaxon/sdk/api/auth_v1_api.py +1 -1
  177. polyaxon/sdk/api/connections_v1_api.py +1 -1
  178. polyaxon/sdk/api/dashboards_v1_api.py +1 -1
  179. polyaxon/sdk/api/organizations_v1_api.py +1 -1
  180. polyaxon/sdk/api/presets_v1_api.py +1 -1
  181. polyaxon/sdk/api/project_dashboards_v1_api.py +1 -1
  182. polyaxon/sdk/api/project_searches_v1_api.py +1 -1
  183. polyaxon/sdk/api/projects_v1_api.py +1 -1
  184. polyaxon/sdk/api/queues_v1_api.py +1 -1
  185. polyaxon/sdk/api/runs_v1_api.py +88 -10
  186. polyaxon/sdk/api/searches_v1_api.py +1 -1
  187. polyaxon/sdk/api/service_accounts_v1_api.py +1 -1
  188. polyaxon/sdk/api/tags_v1_api.py +1 -1
  189. polyaxon/sdk/api/teams_v1_api.py +1 -1
  190. polyaxon/sdk/api/users_v1_api.py +1 -1
  191. polyaxon/sdk/api/versions_v1_api.py +1 -1
  192. polyaxon/settings.py +1 -1
  193. polyaxon/utils/urls_utils.py +3 -1
  194. {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/METADATA +31 -31
  195. {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/RECORD +199 -205
  196. {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/WHEEL +1 -1
  197. polyaxon/compiler/contexts/spark_job.py +0 -39
  198. polyaxon/k8s/converter/converters/spark_job.py +0 -64
  199. polyaxon/k8s/custom_resources/spark_job.py +0 -97
  200. polyaxon/polyflow/run/spark/__init__.py +0 -2
  201. polyaxon/polyflow/run/spark/replica.py +0 -165
  202. polyaxon/polyflow/run/spark/spark.py +0 -341
  203. {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/LICENSE +0 -0
  204. {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/entry_points.txt +0 -0
  205. {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/top_level.txt +0 -0
@@ -2,7 +2,7 @@ from datetime import datetime
2
2
  from typing import Dict, Optional
3
3
  from typing_extensions import Annotated
4
4
 
5
- from pydantic import Field, StrictInt, StrictStr, validate_arguments
5
+ from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_arguments
6
6
 
7
7
  from polyaxon.lifecycle import V1Status
8
8
  from polyaxon.schemas.responses.v1_artifact_tree import V1ArtifactTree
@@ -3052,6 +3052,9 @@ class RunsV1Api(BaseApi):
3052
3052
  connection: Annotated[
3053
3053
  Optional[StrictStr], Field(description="Connection query param.")
3054
3054
  ] = None,
3055
+ status: Annotated[
3056
+ Optional[StrictStr], Field(description="Optional status.")
3057
+ ] = None,
3055
3058
  **kwargs
3056
3059
  ) -> V1EventsResponse: # noqa: E501
3057
3060
  """Get multi runs events # noqa: E501
@@ -3059,7 +3062,7 @@ class RunsV1Api(BaseApi):
3059
3062
  This method makes a synchronous HTTP request by default. To make an
3060
3063
  asynchronous HTTP request, please pass async_req=True
3061
3064
 
3062
- >>> thread = api.get_multi_run_events(namespace, owner, project, kind, names, runs, orient, force, sample, connection, async_req=True)
3065
+ >>> thread = api.get_multi_run_events(namespace, owner, project, kind, names, runs, orient, force, sample, connection, status, async_req=True)
3063
3066
  >>> result = thread.get()
3064
3067
 
3065
3068
  :param namespace: namespace (required)
@@ -3082,6 +3085,8 @@ class RunsV1Api(BaseApi):
3082
3085
  :type sample: int
3083
3086
  :param connection: Connection query param.
3084
3087
  :type connection: str
3088
+ :param status: Optional status.
3089
+ :type status: str
3085
3090
  :param async_req: Whether to execute the request asynchronously.
3086
3091
  :type async_req: bool, optional
3087
3092
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -3109,6 +3114,7 @@ class RunsV1Api(BaseApi):
3109
3114
  force,
3110
3115
  sample,
3111
3116
  connection,
3117
+ status,
3112
3118
  **kwargs
3113
3119
  ) # noqa: E501
3114
3120
 
@@ -3139,6 +3145,9 @@ class RunsV1Api(BaseApi):
3139
3145
  connection: Annotated[
3140
3146
  Optional[StrictStr], Field(description="Connection query param.")
3141
3147
  ] = None,
3148
+ status: Annotated[
3149
+ Optional[StrictStr], Field(description="Optional status.")
3150
+ ] = None,
3142
3151
  **kwargs
3143
3152
  ): # noqa: E501
3144
3153
  """Get multi runs events # noqa: E501
@@ -3146,7 +3155,7 @@ class RunsV1Api(BaseApi):
3146
3155
  This method makes a synchronous HTTP request by default. To make an
3147
3156
  asynchronous HTTP request, please pass async_req=True
3148
3157
 
3149
- >>> thread = api.get_multi_run_events_with_http_info(namespace, owner, project, kind, names, runs, orient, force, sample, connection, async_req=True)
3158
+ >>> thread = api.get_multi_run_events_with_http_info(namespace, owner, project, kind, names, runs, orient, force, sample, connection, status, async_req=True)
3150
3159
  >>> result = thread.get()
3151
3160
 
3152
3161
  :param namespace: namespace (required)
@@ -3169,6 +3178,8 @@ class RunsV1Api(BaseApi):
3169
3178
  :type sample: int
3170
3179
  :param connection: Connection query param.
3171
3180
  :type connection: str
3181
+ :param status: Optional status.
3182
+ :type status: str
3172
3183
  :param async_req: Whether to execute the request asynchronously.
3173
3184
  :type async_req: bool, optional
3174
3185
  :param _return_http_data_only: response data without head status code
@@ -3206,6 +3217,7 @@ class RunsV1Api(BaseApi):
3206
3217
  "force",
3207
3218
  "sample",
3208
3219
  "connection",
3220
+ "status",
3209
3221
  ]
3210
3222
  _all_params.extend(
3211
3223
  [
@@ -3256,6 +3268,8 @@ class RunsV1Api(BaseApi):
3256
3268
  _query_params.append(("sample", _params["sample"]))
3257
3269
  if _params.get("connection") is not None: # noqa: E501
3258
3270
  _query_params.append(("connection", _params["connection"]))
3271
+ if _params.get("status") is not None: # noqa: E501
3272
+ _query_params.append(("status", _params["status"]))
3259
3273
 
3260
3274
  # process the header parameters
3261
3275
  _header_params = dict(_params.get("_headers", {}))
@@ -5582,6 +5596,9 @@ class RunsV1Api(BaseApi):
5582
5596
  connection: Annotated[
5583
5597
  Optional[StrictStr], Field(description="Connection query param.")
5584
5598
  ] = None,
5599
+ status: Annotated[
5600
+ Optional[StrictStr], Field(description="Optional status.")
5601
+ ] = None,
5585
5602
  **kwargs
5586
5603
  ) -> V1EventsResponse: # noqa: E501
5587
5604
  """Get run events # noqa: E501
@@ -5589,7 +5606,7 @@ class RunsV1Api(BaseApi):
5589
5606
  This method makes a synchronous HTTP request by default. To make an
5590
5607
  asynchronous HTTP request, please pass async_req=True
5591
5608
 
5592
- >>> thread = api.get_run_events(namespace, owner, project, uuid, kind, names, orient, force, sample, connection, async_req=True)
5609
+ >>> thread = api.get_run_events(namespace, owner, project, uuid, kind, names, orient, force, sample, connection, status, async_req=True)
5593
5610
  >>> result = thread.get()
5594
5611
 
5595
5612
  :param namespace: namespace (required)
@@ -5612,6 +5629,8 @@ class RunsV1Api(BaseApi):
5612
5629
  :type sample: int
5613
5630
  :param connection: Connection query param.
5614
5631
  :type connection: str
5632
+ :param status: Optional status.
5633
+ :type status: str
5615
5634
  :param async_req: Whether to execute the request asynchronously.
5616
5635
  :type async_req: bool, optional
5617
5636
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -5639,6 +5658,7 @@ class RunsV1Api(BaseApi):
5639
5658
  force,
5640
5659
  sample,
5641
5660
  connection,
5661
+ status,
5642
5662
  **kwargs
5643
5663
  ) # noqa: E501
5644
5664
 
@@ -5669,6 +5689,9 @@ class RunsV1Api(BaseApi):
5669
5689
  connection: Annotated[
5670
5690
  Optional[StrictStr], Field(description="Connection query param.")
5671
5691
  ] = None,
5692
+ status: Annotated[
5693
+ Optional[StrictStr], Field(description="Optional status.")
5694
+ ] = None,
5672
5695
  **kwargs
5673
5696
  ): # noqa: E501
5674
5697
  """Get run events # noqa: E501
@@ -5676,7 +5699,7 @@ class RunsV1Api(BaseApi):
5676
5699
  This method makes a synchronous HTTP request by default. To make an
5677
5700
  asynchronous HTTP request, please pass async_req=True
5678
5701
 
5679
- >>> thread = api.get_run_events_with_http_info(namespace, owner, project, uuid, kind, names, orient, force, sample, connection, async_req=True)
5702
+ >>> thread = api.get_run_events_with_http_info(namespace, owner, project, uuid, kind, names, orient, force, sample, connection, status, async_req=True)
5680
5703
  >>> result = thread.get()
5681
5704
 
5682
5705
  :param namespace: namespace (required)
@@ -5699,6 +5722,8 @@ class RunsV1Api(BaseApi):
5699
5722
  :type sample: int
5700
5723
  :param connection: Connection query param.
5701
5724
  :type connection: str
5725
+ :param status: Optional status.
5726
+ :type status: str
5702
5727
  :param async_req: Whether to execute the request asynchronously.
5703
5728
  :type async_req: bool, optional
5704
5729
  :param _return_http_data_only: response data without head status code
@@ -5736,6 +5761,7 @@ class RunsV1Api(BaseApi):
5736
5761
  "force",
5737
5762
  "sample",
5738
5763
  "connection",
5764
+ "status",
5739
5765
  ]
5740
5766
  _all_params.extend(
5741
5767
  [
@@ -5786,6 +5812,8 @@ class RunsV1Api(BaseApi):
5786
5812
  _query_params.append(("sample", _params["sample"]))
5787
5813
  if _params.get("connection") is not None: # noqa: E501
5788
5814
  _query_params.append(("connection", _params["connection"]))
5815
+ if _params.get("status") is not None: # noqa: E501
5816
+ _query_params.append(("status", _params["status"]))
5789
5817
 
5790
5818
  # process the header parameters
5791
5819
  _header_params = dict(_params.get("_headers", {}))
@@ -6511,6 +6539,9 @@ class RunsV1Api(BaseApi):
6511
6539
  connection: Annotated[
6512
6540
  Optional[StrictStr], Field(description="Connection query param.")
6513
6541
  ] = None,
6542
+ status: Annotated[
6543
+ Optional[StrictStr], Field(description="Optional status.")
6544
+ ] = None,
6514
6545
  **kwargs
6515
6546
  ) -> V1EventsResponse: # noqa: E501
6516
6547
  """Get run resources events # noqa: E501
@@ -6518,7 +6549,7 @@ class RunsV1Api(BaseApi):
6518
6549
  This method makes a synchronous HTTP request by default. To make an
6519
6550
  asynchronous HTTP request, please pass async_req=True
6520
6551
 
6521
- >>> thread = api.get_run_resources(namespace, owner, project, uuid, names, tail, force, sample, connection, async_req=True)
6552
+ >>> thread = api.get_run_resources(namespace, owner, project, uuid, names, tail, force, sample, connection, status, async_req=True)
6522
6553
  >>> result = thread.get()
6523
6554
 
6524
6555
  :param namespace: namespace (required)
@@ -6539,6 +6570,8 @@ class RunsV1Api(BaseApi):
6539
6570
  :type sample: int
6540
6571
  :param connection: Connection query param.
6541
6572
  :type connection: str
6573
+ :param status: Optional status.
6574
+ :type status: str
6542
6575
  :param async_req: Whether to execute the request asynchronously.
6543
6576
  :type async_req: bool, optional
6544
6577
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -6565,6 +6598,7 @@ class RunsV1Api(BaseApi):
6565
6598
  force,
6566
6599
  sample,
6567
6600
  connection,
6601
+ status,
6568
6602
  **kwargs
6569
6603
  ) # noqa: E501
6570
6604
 
@@ -6594,6 +6628,9 @@ class RunsV1Api(BaseApi):
6594
6628
  connection: Annotated[
6595
6629
  Optional[StrictStr], Field(description="Connection query param.")
6596
6630
  ] = None,
6631
+ status: Annotated[
6632
+ Optional[StrictStr], Field(description="Optional status.")
6633
+ ] = None,
6597
6634
  **kwargs
6598
6635
  ): # noqa: E501
6599
6636
  """Get run resources events # noqa: E501
@@ -6601,7 +6638,7 @@ class RunsV1Api(BaseApi):
6601
6638
  This method makes a synchronous HTTP request by default. To make an
6602
6639
  asynchronous HTTP request, please pass async_req=True
6603
6640
 
6604
- >>> thread = api.get_run_resources_with_http_info(namespace, owner, project, uuid, names, tail, force, sample, connection, async_req=True)
6641
+ >>> thread = api.get_run_resources_with_http_info(namespace, owner, project, uuid, names, tail, force, sample, connection, status, async_req=True)
6605
6642
  >>> result = thread.get()
6606
6643
 
6607
6644
  :param namespace: namespace (required)
@@ -6622,6 +6659,8 @@ class RunsV1Api(BaseApi):
6622
6659
  :type sample: int
6623
6660
  :param connection: Connection query param.
6624
6661
  :type connection: str
6662
+ :param status: Optional status.
6663
+ :type status: str
6625
6664
  :param async_req: Whether to execute the request asynchronously.
6626
6665
  :type async_req: bool, optional
6627
6666
  :param _return_http_data_only: response data without head status code
@@ -6658,6 +6697,7 @@ class RunsV1Api(BaseApi):
6658
6697
  "force",
6659
6698
  "sample",
6660
6699
  "connection",
6700
+ "status",
6661
6701
  ]
6662
6702
  _all_params.extend(
6663
6703
  [
@@ -6706,6 +6746,8 @@ class RunsV1Api(BaseApi):
6706
6746
  _query_params.append(("sample", _params["sample"]))
6707
6747
  if _params.get("connection") is not None: # noqa: E501
6708
6748
  _query_params.append(("connection", _params["connection"]))
6749
+ if _params.get("status") is not None: # noqa: E501
6750
+ _query_params.append(("status", _params["status"]))
6709
6751
 
6710
6752
  # process the header parameters
6711
6753
  _header_params = dict(_params.get("_headers", {}))
@@ -8114,6 +8156,12 @@ class RunsV1Api(BaseApi):
8114
8156
  sample: Annotated[
8115
8157
  Optional[StrictInt], Field(description="Sample query param.")
8116
8158
  ] = None,
8159
+ connection: Annotated[
8160
+ Optional[StrictStr], Field(description="Connection to use.")
8161
+ ] = None,
8162
+ status: Annotated[
8163
+ Optional[StrictStr], Field(description="Optional status.")
8164
+ ] = None,
8117
8165
  **kwargs
8118
8166
  ) -> object: # noqa: E501
8119
8167
  """Inspect an active run full conditions # noqa: E501
@@ -8121,7 +8169,7 @@ class RunsV1Api(BaseApi):
8121
8169
  This method makes a synchronous HTTP request by default. To make an
8122
8170
  asynchronous HTTP request, please pass async_req=True
8123
8171
 
8124
- >>> thread = api.inspect_run(namespace, owner, project, uuid, names, tail, force, sample, async_req=True)
8172
+ >>> thread = api.inspect_run(namespace, owner, project, uuid, names, tail, force, sample, connection, status, async_req=True)
8125
8173
  >>> result = thread.get()
8126
8174
 
8127
8175
  :param namespace: namespace (required)
@@ -8140,6 +8188,10 @@ class RunsV1Api(BaseApi):
8140
8188
  :type force: bool
8141
8189
  :param sample: Sample query param.
8142
8190
  :type sample: int
8191
+ :param connection: Connection to use.
8192
+ :type connection: str
8193
+ :param status: Optional status.
8194
+ :type status: str
8143
8195
  :param async_req: Whether to execute the request asynchronously.
8144
8196
  :type async_req: bool, optional
8145
8197
  :param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -8157,7 +8209,17 @@ class RunsV1Api(BaseApi):
8157
8209
  """
8158
8210
  kwargs["_return_http_data_only"] = True
8159
8211
  return self.inspect_run_with_http_info(
8160
- namespace, owner, project, uuid, names, tail, force, sample, **kwargs
8212
+ namespace,
8213
+ owner,
8214
+ project,
8215
+ uuid,
8216
+ names,
8217
+ tail,
8218
+ force,
8219
+ sample,
8220
+ connection,
8221
+ status,
8222
+ **kwargs
8161
8223
  ) # noqa: E501
8162
8224
 
8163
8225
  @validate_arguments
@@ -8183,6 +8245,12 @@ class RunsV1Api(BaseApi):
8183
8245
  sample: Annotated[
8184
8246
  Optional[StrictInt], Field(description="Sample query param.")
8185
8247
  ] = None,
8248
+ connection: Annotated[
8249
+ Optional[StrictStr], Field(description="Connection to use.")
8250
+ ] = None,
8251
+ status: Annotated[
8252
+ Optional[StrictStr], Field(description="Optional status.")
8253
+ ] = None,
8186
8254
  **kwargs
8187
8255
  ): # noqa: E501
8188
8256
  """Inspect an active run full conditions # noqa: E501
@@ -8190,7 +8258,7 @@ class RunsV1Api(BaseApi):
8190
8258
  This method makes a synchronous HTTP request by default. To make an
8191
8259
  asynchronous HTTP request, please pass async_req=True
8192
8260
 
8193
- >>> thread = api.inspect_run_with_http_info(namespace, owner, project, uuid, names, tail, force, sample, async_req=True)
8261
+ >>> thread = api.inspect_run_with_http_info(namespace, owner, project, uuid, names, tail, force, sample, connection, status, async_req=True)
8194
8262
  >>> result = thread.get()
8195
8263
 
8196
8264
  :param namespace: namespace (required)
@@ -8209,6 +8277,10 @@ class RunsV1Api(BaseApi):
8209
8277
  :type force: bool
8210
8278
  :param sample: Sample query param.
8211
8279
  :type sample: int
8280
+ :param connection: Connection to use.
8281
+ :type connection: str
8282
+ :param status: Optional status.
8283
+ :type status: str
8212
8284
  :param async_req: Whether to execute the request asynchronously.
8213
8285
  :type async_req: bool, optional
8214
8286
  :param _return_http_data_only: response data without head status code
@@ -8244,6 +8316,8 @@ class RunsV1Api(BaseApi):
8244
8316
  "tail",
8245
8317
  "force",
8246
8318
  "sample",
8319
+ "connection",
8320
+ "status",
8247
8321
  ]
8248
8322
  _all_params.extend(
8249
8323
  [
@@ -8290,6 +8364,10 @@ class RunsV1Api(BaseApi):
8290
8364
  _query_params.append(("force", _params["force"]))
8291
8365
  if _params.get("sample") is not None: # noqa: E501
8292
8366
  _query_params.append(("sample", _params["sample"]))
8367
+ if _params.get("connection") is not None: # noqa: E501
8368
+ _query_params.append(("connection", _params["connection"]))
8369
+ if _params.get("status") is not None: # noqa: E501
8370
+ _query_params.append(("status", _params["status"]))
8293
8371
 
8294
8372
  # process the header parameters
8295
8373
  _header_params = dict(_params.get("_headers", {}))
@@ -1,7 +1,7 @@
1
1
  from typing import Optional
2
2
  from typing_extensions import Annotated
3
3
 
4
- from pydantic import Field, StrictInt, StrictStr, validate_arguments
4
+ from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_arguments
5
5
 
6
6
  from polyaxon.schemas.responses.v1_list_searches_response import V1ListSearchesResponse
7
7
  from polyaxon.schemas.responses.v1_search import V1Search
@@ -1,7 +1,7 @@
1
1
  from typing import Optional
2
2
  from typing_extensions import Annotated
3
3
 
4
- from pydantic import Field, StrictInt, StrictStr, validate_arguments
4
+ from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_arguments
5
5
 
6
6
  from polyaxon.schemas.responses.v1_list_service_accounts_response import (
7
7
  V1ListServiceAccountsResponse,
@@ -1,7 +1,7 @@
1
1
  from typing import Optional
2
2
  from typing_extensions import Annotated
3
3
 
4
- from pydantic import Field, StrictInt, StrictStr, validate_arguments
4
+ from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_arguments
5
5
 
6
6
  from polyaxon.schemas.responses.v1_entities_tags import V1EntitiesTags
7
7
  from polyaxon.schemas.responses.v1_list_tags_response import V1ListTagsResponse
@@ -1,7 +1,7 @@
1
1
  from typing import Optional
2
2
  from typing_extensions import Annotated
3
3
 
4
- from pydantic import Field, StrictInt, StrictStr, validate_arguments
4
+ from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_arguments
5
5
 
6
6
  from polyaxon.schemas.responses.v1_list_team_members_response import (
7
7
  V1ListTeamMembersResponse,
@@ -1,7 +1,7 @@
1
1
  from typing import Optional
2
2
  from typing_extensions import Annotated
3
3
 
4
- from pydantic import Field, StrictInt, StrictStr, validate_arguments
4
+ from clipped.compact.pydantic import Field, StrictInt, StrictStr, validate_arguments
5
5
 
6
6
  from polyaxon.schemas.responses.v1_list_activities_response import (
7
7
  V1ListActivitiesResponse,
@@ -1,7 +1,7 @@
1
1
  from typing import Optional
2
2
  from typing_extensions import Annotated
3
3
 
4
- from pydantic import Field, StrictStr, validate_arguments
4
+ from clipped.compact.pydantic import Field, StrictStr, validate_arguments
5
5
 
6
6
  from polyaxon.schemas.api.compatibility import V1Compatibility
7
7
  from polyaxon.schemas.api.installation import V1Installation
polyaxon/settings.py CHANGED
@@ -2,9 +2,9 @@ import os
2
2
 
3
3
  from typing import TYPE_CHECKING, Optional
4
4
 
5
+ from clipped.compact.pydantic import ValidationError
5
6
  from clipped.formatting import Printer
6
7
  from clipped.utils.bools import to_bool
7
- from pydantic import ValidationError
8
8
 
9
9
  from polyaxon.api import LOCALHOST
10
10
  from polyaxon.env_vars.keys import EV_KEYS_NO_CONFIG, EV_KEYS_SET_AGENT
@@ -38,12 +38,14 @@ def get_proxy_run_url(
38
38
  project: str,
39
39
  run_uuid: str,
40
40
  subpath: Optional[str] = None,
41
+ port: Optional[int] = None,
41
42
  ) -> str:
42
- url_path = "{namespace}/{owner}/{project}/runs/{run_uuid}".format(
43
+ url_path = "{namespace}/{owner}/{project}/runs/{run_uuid}/{port}".format(
43
44
  namespace=namespace,
44
45
  owner=owner,
45
46
  project=project,
46
47
  run_uuid=run_uuid,
48
+ port=port,
47
49
  )
48
50
  if subpath:
49
51
  url_path = "{}/{}".format(url_path, subpath)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyaxon
3
- Version: 2.0.0rc27
3
+ Version: 2.0.0rc29
4
4
  Summary: Command Line Interface (CLI) and client to interact with Polyaxon API.
5
5
  Home-page: https://github.com/polyaxon/polyaxon
6
6
  Author: Polyaxon, Inc.
@@ -33,36 +33,36 @@ Classifier: Programming Language :: Python :: 3.11
33
33
  Requires-Python: >=3.7
34
34
  Description-Content-Type: text/markdown
35
35
  License-File: LICENSE
36
- Requires-Dist: click (<9.0.0,>=7.1.1)
37
- Requires-Dist: clipped (<0.5,>0.3)
38
- Requires-Dist: vents (<0.2,>0.1)
39
- Requires-Dist: Jinja2 (<3.1.0,>=2.10.3)
40
- Requires-Dist: kubernetes (>=10.0.1)
41
- Requires-Dist: python-dateutil (>=2.7.3)
42
- Requires-Dist: pytz (>=2019.2)
43
- Requires-Dist: PyYAML (>=5.1)
44
- Requires-Dist: orjson (>=3.7)
45
- Requires-Dist: psutil (>=5.4.7)
46
- Requires-Dist: requests (>=2.20.1)
47
- Requires-Dist: requests-toolbelt (>=0.8.0)
48
- Requires-Dist: rich (>=12.0.0)
49
- Requires-Dist: sentry-sdk (>=1.2.0)
50
- Requires-Dist: urllib3 (>=1.25.6)
51
- Requires-Dist: certifi (>=2022.12.7)
52
- Requires-Dist: pydantic (<2.0.0,>=1.10.2)
53
- Requires-Dist: traceml (==1.1.02rc27)
54
- Requires-Dist: hypertune (==1.1.02rc27)
36
+ Requires-Dist: click <9.0.0,>=7.1.1
37
+ Requires-Dist: clipped ==0.5.*
38
+ Requires-Dist: vents ==0.2.*
39
+ Requires-Dist: Jinja2 <3.1.0,>=2.10.3
40
+ Requires-Dist: kubernetes >=10.0.1
41
+ Requires-Dist: python-dateutil >=2.7.3
42
+ Requires-Dist: pytz >=2019.2
43
+ Requires-Dist: PyYAML >=5.1
44
+ Requires-Dist: orjson >=3.7
45
+ Requires-Dist: psutil >=5.4.7
46
+ Requires-Dist: requests >=2.20.1
47
+ Requires-Dist: requests-toolbelt >=0.8.0
48
+ Requires-Dist: rich >=12.0.0
49
+ Requires-Dist: sentry-sdk >=1.2.0
50
+ Requires-Dist: urllib3 >=1.25.6
51
+ Requires-Dist: certifi >=2022.12.7
52
+ Requires-Dist: pydantic >=1.10.2
53
+ Requires-Dist: traceml ==1.1.0rc29
54
+ Requires-Dist: hypertune ==1.1.0rc29
55
55
  Provides-Extra: azure
56
56
  Requires-Dist: adlfs ; extra == 'azure'
57
57
  Provides-Extra: dev
58
- Requires-Dist: moto (==2.0.5) ; extra == 'dev'
58
+ Requires-Dist: moto ==2.0.5 ; extra == 'dev'
59
59
  Provides-Extra: docker
60
60
  Requires-Dist: docker ; extra == 'docker'
61
61
  Provides-Extra: fs
62
- Requires-Dist: adlfs (==2023.4.0) ; extra == 'fs'
63
- Requires-Dist: fsspec (==2023.6.0) ; extra == 'fs'
64
- Requires-Dist: gcsfs (==2023.6.0) ; extra == 'fs'
65
- Requires-Dist: s3fs (==2023.6.0) ; extra == 'fs'
62
+ Requires-Dist: adlfs ==2023.4.0 ; extra == 'fs'
63
+ Requires-Dist: fsspec ==2023.6.0 ; extra == 'fs'
64
+ Requires-Dist: gcsfs ==2023.6.0 ; extra == 'fs'
65
+ Requires-Dist: s3fs ==2023.6.0 ; extra == 'fs'
66
66
  Provides-Extra: fsspec
67
67
  Requires-Dist: fsspec ; extra == 'fsspec'
68
68
  Provides-Extra: gcs
@@ -71,11 +71,11 @@ Provides-Extra: git
71
71
  Requires-Dist: gitpython ; extra == 'git'
72
72
  Provides-Extra: init
73
73
  Requires-Dist: docker ; extra == 'init'
74
- Requires-Dist: GitPython (<3.2.0) ; extra == 'init'
75
- Requires-Dist: aiofiles (==23.1.0) ; extra == 'init'
74
+ Requires-Dist: GitPython <3.2.0 ; extra == 'init'
75
+ Requires-Dist: aiofiles ==23.1.0 ; extra == 'init'
76
76
  Provides-Extra: k8s_async
77
- Requires-Dist: kubernetes-asyncio (==24.2.3) ; extra == 'k8s_async'
78
- Requires-Dist: aiohttp (>=3.0.0) ; extra == 'k8s_async'
77
+ Requires-Dist: kubernetes-asyncio ==24.2.3 ; extra == 'k8s_async'
78
+ Requires-Dist: aiohttp >=3.0.0 ; extra == 'k8s_async'
79
79
  Provides-Extra: numpy
80
80
  Requires-Dist: numpy ; extra == 'numpy'
81
81
  Provides-Extra: s3
@@ -83,7 +83,7 @@ Requires-Dist: s3fs ; extra == 's3'
83
83
  Provides-Extra: sandbox
84
84
  Requires-Dist: haupt[fs,platform,streams] ; extra == 'sandbox'
85
85
  Provides-Extra: sidecar
86
- Requires-Dist: aiofiles (==23.1.0) ; extra == 'sidecar'
86
+ Requires-Dist: aiofiles ==23.1.0 ; extra == 'sidecar'
87
87
  Requires-Dist: pandas ; extra == 'sidecar'
88
88
  Requires-Dist: anyio ; extra == 'sidecar'
89
89
 
@@ -223,7 +223,7 @@ Here are some examples of using distributed training:
223
223
  * [Distributed Pytorch](https://polyaxon.com/docs/experimentation/distributed/pytorch-jobs/)
224
224
  * [Distributed MPI](https://polyaxon.com/docs/experimentation/distributed/mpi-jobs/)
225
225
  * [Horovod](https://polyaxon.com/integrations/horovod/)
226
- * [Spark](https://polyaxon.com/docs/experimentation/distributed/spark-jobs/)
226
+ * [Ray](https://polyaxon.com/docs/experimentation/distributed/ray-jobs/)
227
227
  * [Dask](https://polyaxon.com/docs/experimentation/distributed/dask-jobs/)
228
228
 
229
229
  # Hyperparameters tuning