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.
- polyaxon/api.py +4 -0
- polyaxon/auxiliaries/default_scheduling.py +1 -1
- polyaxon/auxiliaries/init.py +1 -1
- polyaxon/auxiliaries/sidecar.py +1 -1
- polyaxon/cli/operations.py +18 -2
- polyaxon/cli/services/docker.py +1 -1
- polyaxon/cli/services/initializer.py +1 -1
- polyaxon/client/run.py +23 -26
- polyaxon/compiler/contexts/contexts.py +0 -2
- polyaxon/compiler/contexts/service.py +14 -9
- polyaxon/compiler/resolver/agent.py +1 -1
- polyaxon/compiler/resolver/runtime.py +0 -1
- polyaxon/constants/metadata.py +1 -0
- polyaxon/deploy/schemas/auth.py +1 -1
- polyaxon/deploy/schemas/celery.py +1 -1
- polyaxon/deploy/schemas/deployment.py +7 -1
- polyaxon/deploy/schemas/email.py +1 -1
- polyaxon/deploy/schemas/ingress.py +1 -1
- polyaxon/deploy/schemas/intervals.py +1 -1
- polyaxon/deploy/schemas/operators.py +0 -1
- polyaxon/deploy/schemas/proxy.py +1 -1
- polyaxon/deploy/schemas/root_user.py +1 -1
- polyaxon/deploy/schemas/security_context.py +1 -1
- polyaxon/deploy/schemas/service.py +1 -1
- polyaxon/deploy/schemas/ssl.py +1 -1
- polyaxon/deploy/schemas/ui.py +1 -1
- polyaxon/docker/docker_types.py +1 -1
- polyaxon/env_vars/keys.py +0 -2
- polyaxon/k8s/converter/converters/__init__.py +0 -2
- polyaxon/k8s/converter/converters/dask_job.py +3 -0
- polyaxon/k8s/converter/mixins.py +0 -7
- polyaxon/k8s/custom_resources/dask_job.py +14 -2
- polyaxon/lifecycle.py +1 -1
- polyaxon/pkg.py +1 -1
- polyaxon/polyflow/__init__.py +0 -4
- polyaxon/polyflow/builds/__init__.py +1 -1
- polyaxon/polyflow/cache/__init__.py +1 -1
- polyaxon/polyflow/component/base.py +1 -1
- polyaxon/polyflow/component/component.py +1 -2
- polyaxon/polyflow/component/component_reference.py +1 -1
- polyaxon/polyflow/early_stopping/__init__.py +1 -1
- polyaxon/polyflow/early_stopping/policies.py +1 -1
- polyaxon/polyflow/environment/__init__.py +1 -1
- polyaxon/polyflow/events/__init__.py +1 -1
- polyaxon/polyflow/hooks/__init__.py +1 -1
- polyaxon/polyflow/init/__init__.py +1 -1
- polyaxon/polyflow/io/io.py +1 -1
- polyaxon/polyflow/joins/__init__.py +1 -1
- polyaxon/polyflow/matrix/__init__.py +1 -1
- polyaxon/polyflow/matrix/bayes.py +7 -1
- polyaxon/polyflow/matrix/grid_search.py +1 -1
- polyaxon/polyflow/matrix/hyperband.py +1 -1
- polyaxon/polyflow/matrix/hyperopt.py +1 -1
- polyaxon/polyflow/matrix/iterative.py +1 -1
- polyaxon/polyflow/matrix/mapping.py +1 -1
- polyaxon/polyflow/matrix/params.py +2 -2
- polyaxon/polyflow/matrix/random_search.py +1 -1
- polyaxon/polyflow/matrix/tuner.py +1 -1
- polyaxon/polyflow/mounts/artifacts_mounts.py +1 -1
- polyaxon/polyflow/notifications/__init__.py +1 -1
- polyaxon/polyflow/operations/base.py +1 -1
- polyaxon/polyflow/operations/operation.py +1 -2
- polyaxon/polyflow/optimization/__init__.py +1 -1
- polyaxon/polyflow/params/params.py +1 -1
- polyaxon/polyflow/plugins/__init__.py +1 -1
- polyaxon/polyflow/references/dag.py +1 -1
- polyaxon/polyflow/references/hub.py +1 -1
- polyaxon/polyflow/references/path.py +1 -1
- polyaxon/polyflow/references/url.py +1 -1
- polyaxon/polyflow/run/__init__.py +1 -13
- polyaxon/polyflow/run/dag.py +7 -1
- polyaxon/polyflow/run/dask/replica.py +1 -1
- polyaxon/polyflow/run/job.py +1 -1
- polyaxon/polyflow/run/kinds.py +14 -1
- polyaxon/polyflow/run/kubeflow/mpi_job.py +1 -1
- polyaxon/polyflow/run/kubeflow/mx_job.py +1 -1
- polyaxon/polyflow/run/kubeflow/paddle_job.py +1 -1
- polyaxon/polyflow/run/kubeflow/pytorch_job.py +1 -1
- polyaxon/polyflow/run/kubeflow/replica.py +1 -1
- polyaxon/polyflow/run/kubeflow/scheduling_policy.py +1 -1
- polyaxon/polyflow/run/kubeflow/tf_job.py +1 -1
- polyaxon/polyflow/run/kubeflow/xgboost_job.py +1 -1
- polyaxon/polyflow/run/patch.py +1 -7
- polyaxon/polyflow/run/ray/ray.py +1 -1
- polyaxon/polyflow/run/ray/replica.py +1 -1
- polyaxon/polyflow/run/resources.py +1 -1
- polyaxon/polyflow/run/service.py +1 -1
- polyaxon/polyflow/schedules/__init__.py +1 -1
- polyaxon/polyflow/schedules/cron.py +1 -1
- polyaxon/polyflow/schedules/datetime.py +1 -1
- polyaxon/polyflow/schedules/interval.py +1 -1
- polyaxon/polyflow/templates/__init__.py +1 -1
- polyaxon/polyflow/termination/__init__.py +2 -2
- polyaxon/schemas/api/authentication.py +1 -1
- polyaxon/schemas/api/home.py +1 -1
- polyaxon/schemas/api/installation.py +1 -1
- polyaxon/schemas/api/log_handler.py +1 -1
- polyaxon/schemas/api/resources.py +1 -1
- polyaxon/schemas/api/user.py +1 -1
- polyaxon/schemas/api/version.py +1 -1
- polyaxon/schemas/base.py +1 -1
- polyaxon/schemas/cli/agent_config.py +1 -1
- polyaxon/schemas/cli/cli_config.py +1 -1
- polyaxon/schemas/cli/client_config.py +1 -1
- polyaxon/schemas/responses/v1_activity.py +1 -1
- polyaxon/schemas/responses/v1_agent.py +1 -1
- polyaxon/schemas/responses/v1_agent_status_body_request.py +1 -1
- polyaxon/schemas/responses/v1_analytics_spec.py +1 -1
- polyaxon/schemas/responses/v1_artifact_tree.py +1 -1
- polyaxon/schemas/responses/v1_auth.py +1 -1
- polyaxon/schemas/responses/v1_cloning.py +1 -1
- polyaxon/schemas/responses/v1_connection_response.py +1 -1
- polyaxon/schemas/responses/v1_dashboard.py +1 -1
- polyaxon/schemas/responses/v1_entities_tags.py +1 -1
- polyaxon/schemas/responses/v1_entities_transfer.py +1 -1
- polyaxon/schemas/responses/v1_entity_notification_body.py +1 -1
- polyaxon/schemas/responses/v1_entity_stage_body_request.py +1 -1
- polyaxon/schemas/responses/v1_entity_status_body_request.py +1 -1
- polyaxon/schemas/responses/v1_list_activities_response.py +1 -1
- polyaxon/schemas/responses/v1_list_agents_response.py +1 -1
- polyaxon/schemas/responses/v1_list_bookmarks_response.py +1 -1
- polyaxon/schemas/responses/v1_list_connections_response.py +1 -1
- polyaxon/schemas/responses/v1_list_dashboards_response.py +1 -1
- polyaxon/schemas/responses/v1_list_organization_members_response.py +1 -1
- polyaxon/schemas/responses/v1_list_organizations_response.py +1 -1
- polyaxon/schemas/responses/v1_list_presets_response.py +1 -1
- polyaxon/schemas/responses/v1_list_project_versions_response.py +1 -1
- polyaxon/schemas/responses/v1_list_projects_response.py +1 -1
- polyaxon/schemas/responses/v1_list_queues_response.py +1 -1
- polyaxon/schemas/responses/v1_list_run_artifacts_response.py +1 -1
- polyaxon/schemas/responses/v1_list_run_connections_response.py +1 -1
- polyaxon/schemas/responses/v1_list_run_edges_response.py +1 -1
- polyaxon/schemas/responses/v1_list_runs_response.py +1 -1
- polyaxon/schemas/responses/v1_list_searches_response.py +1 -1
- polyaxon/schemas/responses/v1_list_service_accounts_response.py +1 -1
- polyaxon/schemas/responses/v1_list_tags_response.py +1 -1
- polyaxon/schemas/responses/v1_list_team_members_response.py +1 -1
- polyaxon/schemas/responses/v1_list_teams_response.py +1 -1
- polyaxon/schemas/responses/v1_list_token_response.py +1 -1
- polyaxon/schemas/responses/v1_operation_body.py +1 -1
- polyaxon/schemas/responses/v1_organization.py +1 -1
- polyaxon/schemas/responses/v1_organization_member.py +1 -1
- polyaxon/schemas/responses/v1_password_change.py +1 -1
- polyaxon/schemas/responses/v1_pipeline.py +1 -1
- polyaxon/schemas/responses/v1_preset.py +1 -1
- polyaxon/schemas/responses/v1_project.py +1 -1
- polyaxon/schemas/responses/v1_project_settings.py +1 -1
- polyaxon/schemas/responses/v1_project_user_access.py +1 -1
- polyaxon/schemas/responses/v1_project_version.py +1 -1
- polyaxon/schemas/responses/v1_queue.py +1 -1
- polyaxon/schemas/responses/v1_run.py +1 -1
- polyaxon/schemas/responses/v1_run_connection.py +1 -1
- polyaxon/schemas/responses/v1_run_reference_catalog.py +1 -1
- polyaxon/schemas/responses/v1_run_settings.py +1 -1
- polyaxon/schemas/responses/v1_search.py +1 -1
- polyaxon/schemas/responses/v1_search_spec.py +1 -1
- polyaxon/schemas/responses/v1_section_spec.py +1 -1
- polyaxon/schemas/responses/v1_service_account.py +1 -1
- polyaxon/schemas/responses/v1_settings_catalog.py +2 -1
- polyaxon/schemas/responses/v1_tag.py +1 -1
- polyaxon/schemas/responses/v1_team.py +1 -1
- polyaxon/schemas/responses/v1_team_member.py +1 -1
- polyaxon/schemas/responses/v1_token.py +1 -1
- polyaxon/schemas/responses/v1_trial_start.py +1 -1
- polyaxon/schemas/responses/v1_user.py +1 -1
- polyaxon/schemas/responses/v1_user_singup.py +1 -1
- polyaxon/schemas/services.py +1 -1
- polyaxon/schemas/types/artifacts.py +1 -1
- polyaxon/schemas/types/dockerfile.py +1 -1
- polyaxon/schemas/types/event.py +1 -1
- polyaxon/schemas/types/file.py +1 -1
- polyaxon/schemas/types/git.py +1 -1
- polyaxon/schemas/types/tensorboard.py +1 -1
- polyaxon/sdk/api/agents_v1_api.py +1 -1
- polyaxon/sdk/api/artifacts_stores_v1_api.py +1 -1
- polyaxon/sdk/api/auth_v1_api.py +1 -1
- polyaxon/sdk/api/connections_v1_api.py +1 -1
- polyaxon/sdk/api/dashboards_v1_api.py +1 -1
- polyaxon/sdk/api/organizations_v1_api.py +1 -1
- polyaxon/sdk/api/presets_v1_api.py +1 -1
- polyaxon/sdk/api/project_dashboards_v1_api.py +1 -1
- polyaxon/sdk/api/project_searches_v1_api.py +1 -1
- polyaxon/sdk/api/projects_v1_api.py +1 -1
- polyaxon/sdk/api/queues_v1_api.py +1 -1
- polyaxon/sdk/api/runs_v1_api.py +88 -10
- polyaxon/sdk/api/searches_v1_api.py +1 -1
- polyaxon/sdk/api/service_accounts_v1_api.py +1 -1
- polyaxon/sdk/api/tags_v1_api.py +1 -1
- polyaxon/sdk/api/teams_v1_api.py +1 -1
- polyaxon/sdk/api/users_v1_api.py +1 -1
- polyaxon/sdk/api/versions_v1_api.py +1 -1
- polyaxon/settings.py +1 -1
- polyaxon/utils/urls_utils.py +3 -1
- {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/METADATA +31 -31
- {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/RECORD +199 -205
- {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/WHEEL +1 -1
- polyaxon/compiler/contexts/spark_job.py +0 -39
- polyaxon/k8s/converter/converters/spark_job.py +0 -64
- polyaxon/k8s/custom_resources/spark_job.py +0 -97
- polyaxon/polyflow/run/spark/__init__.py +0 -2
- polyaxon/polyflow/run/spark/replica.py +0 -165
- polyaxon/polyflow/run/spark/spark.py +0 -341
- {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/LICENSE +0 -0
- {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/entry_points.txt +0 -0
- {polyaxon-2.0.0rc27.dist-info → polyaxon-2.0.0rc29.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr, constr, validator
|
3
4
|
from clipped.types.ref_or_obj import BoolOrRef, FloatOrRef, RefField
|
4
5
|
from clipped.utils.lists import to_list
|
5
|
-
from pydantic import Field, StrictStr, constr, validator
|
6
6
|
|
7
7
|
from polyaxon.polyflow.builds import V1Build
|
8
8
|
from polyaxon.polyflow.cache import V1Cache
|
@@ -46,7 +46,7 @@ class V1Component(
|
|
46
46
|
hooks: List[[V1Hook](/docs/automation/hooks/)], optional
|
47
47
|
inputs: [V1IO](/docs/core/specification/io/), optional
|
48
48
|
outputs: [V1IO](/docs/core/specification/io/), optional
|
49
|
-
run: Union[[V1Job](/docs/experimentation/jobs/), [V1Service](/docs/experimentation/services/), [V1TFJob](/docs/experimentation/distributed/tf-jobs/), [V1PytorchJob](/docs/experimentation/distributed/pytorch-jobs/), [V1MPIJob](/docs/experimentation/distributed/mpi-jobs/), [V1PaddleJob](/docs/experimentation/distributed/paddle-jobs/), [
|
49
|
+
run: Union[[V1Job](/docs/experimentation/jobs/), [V1Service](/docs/experimentation/services/), [V1TFJob](/docs/experimentation/distributed/tf-jobs/), [V1PytorchJob](/docs/experimentation/distributed/pytorch-jobs/), [V1MPIJob](/docs/experimentation/distributed/mpi-jobs/), [V1PaddleJob](/docs/experimentation/distributed/paddle-jobs/), [V1RayJob](/docs/experimentation/distributed/ray-jobs/), [V1DaskJob](/docs/experimentation/distributed/dask-jobs/), [V1Dag](/docs/automation/flow-engine/specification/)] # noqa
|
50
50
|
template: [V1Template](/docs/core/specification/template/), optional
|
51
51
|
|
52
52
|
## YAML usage
|
@@ -335,7 +335,6 @@ class V1Component(
|
|
335
335
|
* [V1PaddleJob](/docs/experimentation/distributed/paddle-jobs/): for running distributed
|
336
336
|
PaddlePaddle training job.
|
337
337
|
* [V1RayJob](/docs/experimentation/distributed/ray-jobs/): for running a ray job.
|
338
|
-
* [V1SparkJob](/docs/experimentation/distributed/spark-jobs/): for running a spark application.
|
339
338
|
* [V1DaskJob](/docs/experimentation/distributed/dask-jobs/): for running a Dask job.
|
340
339
|
* [V1Dag](/docs/automation/flow-engine/specification/): for running a DAG/workflow.
|
341
340
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Union
|
2
2
|
from typing_extensions import Annotated
|
3
3
|
|
4
|
-
from pydantic import Field
|
4
|
+
from clipped.compact.pydantic import Field
|
5
5
|
|
6
6
|
from polyaxon.polyflow.component.component import V1Component
|
7
7
|
from polyaxon.polyflow.references import V1DagRef, V1HubRef, V1PathRef, V1UrlRef
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
from typing_extensions import Annotated, Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field, StrictFloat, StrictStr
|
4
5
|
from clipped.types.ref_or_obj import BoolOrRef, FloatOrRef, IntOrRef
|
5
|
-
from pydantic import Field, StrictFloat, StrictStr
|
6
6
|
|
7
7
|
from polyaxon.polyflow.optimization import V1Optimization
|
8
8
|
from polyaxon.schemas.base import BaseSchemaModel
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
-
from pydantic import Field, StrictStr, validator
|
4
|
+
from clipped.compact.pydantic import Field, StrictStr, validator
|
5
5
|
|
6
6
|
from polyaxon.k8s import k8s_schemas, k8s_validation
|
7
7
|
from polyaxon.schemas.base import BaseSchemaModel
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import List, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import StrictStr
|
3
4
|
from clipped.types.ref_or_obj import RefField
|
4
5
|
from clipped.utils.enums import PEnum
|
5
|
-
from pydantic import StrictStr
|
6
6
|
|
7
7
|
from polyaxon.contexts import refs as ctx_refs
|
8
8
|
from polyaxon.lifecycle import V1Statuses
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr, validator
|
3
4
|
from clipped.types.ref_or_obj import BoolOrRef, RefField
|
4
|
-
from pydantic import Field, StrictStr, validator
|
5
5
|
|
6
6
|
from polyaxon.lifecycle import V1Statuses
|
7
7
|
from polyaxon.polyflow.params import V1Param
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr, root_validator, validator
|
3
4
|
from clipped.config.schema import skip_partial
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import Field, StrictStr, root_validator, validator
|
6
6
|
|
7
7
|
from polyaxon.k8s import k8s_schemas, k8s_validation
|
8
8
|
from polyaxon.schemas.base import BaseSchemaModel
|
polyaxon/polyflow/io/io.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Any, List, Optional
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr, root_validator, validator
|
3
4
|
from clipped.config.schema import skip_partial
|
4
|
-
from pydantic import Field, StrictStr, root_validator, validator
|
5
5
|
|
6
6
|
from polyaxon.config.parser import ConfigParser
|
7
7
|
from polyaxon.exceptions import PolyaxonSchemaError, PolyaxonValidationError
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Dict, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import StrictStr
|
3
4
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
4
|
-
from pydantic import StrictStr
|
5
5
|
|
6
6
|
from polyaxon.polyflow.params.params import ParamValueMixin, V1Param
|
7
7
|
from polyaxon.schemas.base import BaseSchemaModel
|
@@ -1,10 +1,16 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import (
|
5
|
+
Field,
|
6
|
+
PositiveInt,
|
7
|
+
StrictInt,
|
8
|
+
root_validator,
|
9
|
+
validator,
|
10
|
+
)
|
4
11
|
from clipped.config.schema import skip_partial
|
5
12
|
from clipped.types.ref_or_obj import RefField
|
6
13
|
from clipped.utils.enums import PEnum
|
7
|
-
from pydantic import Field, PositiveInt, StrictInt, root_validator, validator
|
8
14
|
|
9
15
|
from polyaxon.polyflow.early_stopping import V1EarlyStopping
|
10
16
|
from polyaxon.polyflow.matrix.base import BaseSearchConfig
|
@@ -1,9 +1,9 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field, PositiveInt, validator
|
4
5
|
from clipped.config.schema import skip_partial
|
5
6
|
from clipped.types.ref_or_obj import RefField
|
6
|
-
from pydantic import Field, PositiveInt, validator
|
7
7
|
|
8
8
|
from polyaxon.polyflow.early_stopping import V1EarlyStopping
|
9
9
|
from polyaxon.polyflow.matrix.base import BaseSearchConfig
|
@@ -3,8 +3,8 @@ import math
|
|
3
3
|
from typing import Dict, List, Optional, Tuple, Union
|
4
4
|
from typing_extensions import Literal
|
5
5
|
|
6
|
+
from clipped.compact.pydantic import Field, NonNegativeFloat, PositiveInt, PrivateAttr
|
6
7
|
from clipped.types.ref_or_obj import BoolOrRef, IntOrRef, RefField
|
7
|
-
from pydantic import Field, NonNegativeFloat, PositiveInt, PrivateAttr
|
8
8
|
|
9
9
|
from polyaxon.polyflow.early_stopping import V1EarlyStopping
|
10
10
|
from polyaxon.polyflow.matrix.base import BaseSearchConfig
|
@@ -1,9 +1,9 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field, PositiveInt, validator
|
4
5
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
5
6
|
from clipped.utils.enums import PEnum
|
6
|
-
from pydantic import Field, PositiveInt, validator
|
7
7
|
|
8
8
|
from polyaxon.polyflow.early_stopping import V1EarlyStopping
|
9
9
|
from polyaxon.polyflow.matrix.base import BaseSearchConfig
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field, PositiveInt, validator
|
4
5
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
5
|
-
from pydantic import Field, PositiveInt, validator
|
6
6
|
|
7
7
|
from polyaxon.polyflow.early_stopping import V1EarlyStopping
|
8
8
|
from polyaxon.polyflow.matrix.base import BaseSearchConfig
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field, PositiveInt, validator
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import Field, PositiveInt, validator
|
6
6
|
|
7
7
|
from polyaxon.contexts.params import is_template_ref
|
8
8
|
from polyaxon.polyflow.early_stopping import V1EarlyStopping
|
@@ -2,17 +2,17 @@ from datetime import date, datetime, timedelta
|
|
2
2
|
from typing import TYPE_CHECKING, Any, List, Optional, Union
|
3
3
|
from typing_extensions import Annotated, Literal
|
4
4
|
|
5
|
+
from clipped.compact.pydantic import Field, StrictStr, root_validator, validator
|
5
6
|
from clipped.config.schema import skip_partial
|
6
7
|
from clipped.types.numbers import StrictIntOrFloat
|
7
8
|
from clipped.types.ref_or_obj import RefField
|
8
|
-
from pydantic import Field, StrictStr, root_validator, validator
|
9
9
|
|
10
10
|
from polyaxon import types
|
11
11
|
from polyaxon.polyflow.matrix.kinds import V1HPKind
|
12
12
|
from polyaxon.schemas.base import BaseSchemaModel
|
13
13
|
|
14
14
|
if TYPE_CHECKING:
|
15
|
-
from pydantic
|
15
|
+
from clipped.compact.pydantic import CallableGenerator
|
16
16
|
|
17
17
|
try:
|
18
18
|
import numpy as np
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field, PositiveInt, validator
|
4
5
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
5
|
-
from pydantic import Field, PositiveInt, validator
|
6
6
|
|
7
7
|
from polyaxon.polyflow.early_stopping import V1EarlyStopping
|
8
8
|
from polyaxon.polyflow.matrix.base import BaseSearchConfig
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr
|
3
4
|
from clipped.types.ref_or_obj import RefField
|
4
|
-
from pydantic import Field, StrictStr
|
5
5
|
|
6
6
|
from polyaxon.polyflow.params import V1Param
|
7
7
|
from polyaxon.schemas.base import BaseSchemaModel
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Dict, List, Optional, Set, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr
|
3
4
|
from clipped.types.ref_or_obj import RefField
|
4
|
-
from pydantic import Field, StrictStr
|
5
5
|
|
6
6
|
from polyaxon.contexts import refs as ctx_refs
|
7
7
|
from polyaxon.lifecycle import V1Statuses
|
@@ -2,9 +2,9 @@ from copy import copy
|
|
2
2
|
from typing import Dict, Optional
|
3
3
|
from typing_extensions import Literal
|
4
4
|
|
5
|
+
from clipped.compact.pydantic import Field, StrictStr, root_validator, validator
|
5
6
|
from clipped.config.patch_strategy import PatchStrategy
|
6
7
|
from clipped.config.schema import skip_partial, to_partial
|
7
|
-
from pydantic import Field, StrictStr, root_validator, validator
|
8
8
|
|
9
9
|
from polyaxon.polyflow.builds import V1Build
|
10
10
|
from polyaxon.polyflow.component.component import V1Component
|
@@ -339,7 +339,6 @@ class V1Operation(BaseOp, TemplateMixinConfig):
|
|
339
339
|
* [V1XGBoostJob](/docs/experimentation/distributed/xgboost-jobs/): for running distributed XGBoost training job. # noqa
|
340
340
|
* [V1MPIJob](/docs/experimentation/distributed/mpi-jobs/): for running distributed MPI job. # noqa
|
341
341
|
* [V1RayJob](/docs/experimentation/distributed/ray-jobs/): for running a Ray job.
|
342
|
-
* [V1SparkJob](/docs/experimentation/distributed/spark-jobs/): for running a Spark job.
|
343
342
|
* [V1DaskJob](/docs/experimentation/distributed/dask-jobs/): for running a Dask job.
|
344
343
|
* [V1Dag](/docs/automation/flow-engine/specification/): for running a DAG/workflow.
|
345
344
|
|
@@ -2,10 +2,10 @@ from collections import namedtuple
|
|
2
2
|
from collections.abc import Mapping
|
3
3
|
from typing import Any, Dict, Optional
|
4
4
|
|
5
|
+
from clipped.compact.pydantic import Field, StrictStr, validator
|
5
6
|
from clipped.config.schema import skip_partial
|
6
7
|
from clipped.utils.lists import to_list
|
7
8
|
from clipped.utils.strings import to_string
|
8
|
-
from pydantic import Field, StrictStr, validator
|
9
9
|
|
10
10
|
from polyaxon import types
|
11
11
|
from polyaxon.contexts import refs as ctx_refs
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr
|
3
4
|
from clipped.types.ref_or_obj import BoolOrRef, RefField
|
4
|
-
from pydantic import Field, StrictStr
|
5
5
|
|
6
6
|
from polyaxon.auxiliaries.sidecar import V1PolyaxonSidecarContainer
|
7
7
|
from polyaxon.polyflow.notifications import V1Notification
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Union
|
2
2
|
from typing_extensions import Annotated
|
3
3
|
|
4
|
-
from pydantic import Field
|
4
|
+
from clipped.compact.pydantic import Field
|
5
5
|
|
6
6
|
from polyaxon.polyflow.run.cleaner import V1CleanerJob
|
7
7
|
from polyaxon.polyflow.run.dag import V1Dag
|
@@ -27,12 +27,6 @@ from polyaxon.polyflow.run.patch import validate_run_patch
|
|
27
27
|
from polyaxon.polyflow.run.ray import V1RayJob, V1RayReplica
|
28
28
|
from polyaxon.polyflow.run.resources import V1RunResources
|
29
29
|
from polyaxon.polyflow.run.service import V1Service
|
30
|
-
from polyaxon.polyflow.run.spark import (
|
31
|
-
V1SparkDeploy,
|
32
|
-
V1SparkJob,
|
33
|
-
V1SparkReplica,
|
34
|
-
V1SparkType,
|
35
|
-
)
|
36
30
|
from polyaxon.polyflow.run.tuner import V1TunerJob
|
37
31
|
|
38
32
|
V1Runtime = Annotated[
|
@@ -46,7 +40,6 @@ V1Runtime = Annotated[
|
|
46
40
|
V1MXJob,
|
47
41
|
V1PaddleJob,
|
48
42
|
V1XGBoostJob,
|
49
|
-
V1SparkJob,
|
50
43
|
V1DaskJob,
|
51
44
|
V1RayJob,
|
52
45
|
V1NotifierJob,
|
@@ -93,10 +86,6 @@ class RunMixin:
|
|
93
86
|
def is_xgb_job_run(self):
|
94
87
|
return self.get_run_kind() == V1RunKind.XGBJOB
|
95
88
|
|
96
|
-
@property
|
97
|
-
def is_spark_job_run(self):
|
98
|
-
return self.get_run_kind() == V1RunKind.SPARKJOB
|
99
|
-
|
100
89
|
@property
|
101
90
|
def is_ray_job_run(self):
|
102
91
|
return self.get_run_kind() == V1RunKind.RAYJOB
|
@@ -137,7 +126,6 @@ class RunMixin:
|
|
137
126
|
or self.is_tf_job_run
|
138
127
|
or self.is_mx_job_run
|
139
128
|
or self.is_xgb_job_run
|
140
|
-
or self.is_spark_job_run
|
141
129
|
or self.is_ray_job_run
|
142
130
|
or self.is_dask_job_run
|
143
131
|
)
|
polyaxon/polyflow/run/dag.py
CHANGED
@@ -2,8 +2,14 @@ from collections.abc import Mapping
|
|
2
2
|
from typing import Any, Dict, ForwardRef, List, Optional, Set, Union
|
3
3
|
from typing_extensions import Literal
|
4
4
|
|
5
|
+
from clipped.compact.pydantic import (
|
6
|
+
Field,
|
7
|
+
PositiveInt,
|
8
|
+
PrivateAttr,
|
9
|
+
StrictStr,
|
10
|
+
validator,
|
11
|
+
)
|
5
12
|
from clipped.types.ref_or_obj import RefField
|
6
|
-
from pydantic import Field, PositiveInt, PrivateAttr, StrictStr, validator
|
7
13
|
|
8
14
|
from polyaxon import types
|
9
15
|
from polyaxon.contexts import sections as ctx_sections
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import StrictStr, validator
|
3
4
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
4
|
-
from pydantic import StrictStr, validator
|
5
5
|
|
6
6
|
from polyaxon.k8s import k8s_schemas, k8s_validation
|
7
7
|
from polyaxon.polyflow.environment import V1Environment
|
polyaxon/polyflow/run/job.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import StrictStr, validator
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import StrictStr, validator
|
6
6
|
|
7
7
|
from polyaxon.k8s import k8s_schemas, k8s_validation
|
8
8
|
from polyaxon.polyflow.environment import V1Environment
|
polyaxon/polyflow/run/kinds.py
CHANGED
@@ -5,7 +5,6 @@ class V1RunKind(str, PEnum):
|
|
5
5
|
JOB = "job"
|
6
6
|
SERVICE = "service"
|
7
7
|
DAG = "dag"
|
8
|
-
SPARKJOB = "sparkjob"
|
9
8
|
DASKJOB = "daskjob"
|
10
9
|
RAYJOB = "rayjob"
|
11
10
|
MPIJOB = "mpijob"
|
@@ -22,6 +21,20 @@ class V1RunKind(str, PEnum):
|
|
22
21
|
CLEANER = "cleaner"
|
23
22
|
BUILDER = "builder"
|
24
23
|
|
24
|
+
@classmethod
|
25
|
+
def has_service(cls, kind: str):
|
26
|
+
return kind in (
|
27
|
+
cls.SERVICE,
|
28
|
+
cls.DASKJOB,
|
29
|
+
cls.RAYJOB,
|
30
|
+
cls.MPIJOB,
|
31
|
+
cls.TFJOB,
|
32
|
+
cls.PYTORCHJOB,
|
33
|
+
cls.PADDLEJOB,
|
34
|
+
cls.MXJOB,
|
35
|
+
cls.XGBJOB,
|
36
|
+
)
|
37
|
+
|
25
38
|
|
26
39
|
class V1CloningKind(str, PEnum):
|
27
40
|
COPY = "copy"
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field
|
4
5
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
5
|
-
from pydantic import Field
|
6
6
|
|
7
7
|
from polyaxon.k8s.k8s_schemas import V1Container
|
8
8
|
from polyaxon.polyflow.run.base import BaseRun
|
@@ -1,9 +1,9 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
6
|
from clipped.utils.enums import PEnum
|
6
|
-
from pydantic import Field
|
7
7
|
|
8
8
|
from polyaxon.k8s.k8s_schemas import V1Container
|
9
9
|
from polyaxon.polyflow.run.base import BaseRun
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import Field
|
6
6
|
|
7
7
|
from polyaxon.k8s.k8s_schemas import V1Container
|
8
8
|
from polyaxon.polyflow.run.base import BaseRun
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import Field
|
6
6
|
|
7
7
|
from polyaxon.k8s.k8s_schemas import V1Container
|
8
8
|
from polyaxon.polyflow.run.base import BaseRun
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import StrictStr, validator
|
3
4
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
4
|
-
from pydantic import StrictStr, validator
|
5
5
|
|
6
6
|
from polyaxon.k8s import k8s_schemas, k8s_validation
|
7
7
|
from polyaxon.polyflow.environment import V1Environment
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import Field
|
6
6
|
|
7
7
|
from polyaxon.k8s.k8s_schemas import V1Container
|
8
8
|
from polyaxon.polyflow.run.base import BaseRun
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import Field
|
6
6
|
|
7
7
|
from polyaxon.k8s.k8s_schemas import V1Container
|
8
8
|
from polyaxon.polyflow.run.base import BaseRun
|
polyaxon/polyflow/run/patch.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
from typing import Dict
|
2
2
|
|
3
|
-
from pydantic import ValidationError
|
3
|
+
from clipped.compact.pydantic import ValidationError
|
4
4
|
|
5
5
|
from polyaxon.exceptions import PolyaxonValidationError
|
6
6
|
from polyaxon.polyflow.run.cleaner import V1CleanerJob
|
@@ -18,7 +18,6 @@ from polyaxon.polyflow.run.kubeflow.xgboost_job import V1XGBoostJob
|
|
18
18
|
from polyaxon.polyflow.run.notifier import V1NotifierJob
|
19
19
|
from polyaxon.polyflow.run.ray import V1RayJob, V1RayReplica
|
20
20
|
from polyaxon.polyflow.run.service import V1Service
|
21
|
-
from polyaxon.polyflow.run.spark import V1SparkJob, V1SparkReplica
|
22
21
|
from polyaxon.polyflow.run.tuner import V1TunerJob
|
23
22
|
|
24
23
|
|
@@ -59,11 +58,6 @@ def validate_run_patch(run_patch: Dict, kind: V1RunKind):
|
|
59
58
|
patch = V1XGBoostJob.from_dict(run_patch)
|
60
59
|
except ValidationError:
|
61
60
|
patch = V1KFReplica.from_dict(run_patch)
|
62
|
-
elif kind == V1RunKind.SPARKJOB:
|
63
|
-
try:
|
64
|
-
patch = V1SparkJob.from_dict(run_patch)
|
65
|
-
except ValidationError:
|
66
|
-
patch = V1SparkReplica.from_dict(run_patch)
|
67
61
|
elif kind == V1RunKind.RAYJOB:
|
68
62
|
try:
|
69
63
|
patch = V1RayJob.from_dict(run_patch)
|
polyaxon/polyflow/run/ray/ray.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Any, Dict, List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field
|
4
5
|
from clipped.types.ref_or_obj import RefField
|
5
|
-
from pydantic import Field
|
6
6
|
|
7
7
|
from polyaxon.k8s.k8s_schemas import V1Container
|
8
8
|
from polyaxon.polyflow.run.base import BaseRun
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from typing import Dict, List, Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import Field, StrictStr, validator
|
3
4
|
from clipped.types.ref_or_obj import IntOrRef, RefField
|
4
|
-
from pydantic import Field, StrictStr, validator
|
5
5
|
|
6
6
|
from polyaxon.k8s import k8s_schemas, k8s_validation
|
7
7
|
from polyaxon.polyflow.environment import V1Environment
|
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import Optional, Union
|
2
2
|
|
3
|
+
from clipped.compact.pydantic import StrictStr
|
3
4
|
from clipped.types.numbers import StrictIntOrFloat
|
4
5
|
from clipped.utils.units import to_cpu_value, to_memory_bytes
|
5
|
-
from pydantic import StrictStr
|
6
6
|
|
7
7
|
from polyaxon.k8s.k8s_schemas import V1Container
|
8
8
|
from polyaxon.schemas.base import BaseSchemaModel
|
polyaxon/polyflow/run/service.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
from typing import List, Optional, Union
|
2
2
|
from typing_extensions import Literal
|
3
3
|
|
4
|
+
from clipped.compact.pydantic import Field, StrictInt
|
4
5
|
from clipped.types.ref_or_obj import BoolOrRef, IntOrRef, RefField
|
5
|
-
from pydantic import Field, StrictInt
|
6
6
|
|
7
7
|
from polyaxon.polyflow.run.job import V1Job
|
8
8
|
from polyaxon.polyflow.run.kinds import V1RunKind
|