zenml-nightly 0.66.0.dev20240930__py3-none-any.whl → 0.68.0.dev20241026__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.
- README.md +2 -2
- RELEASE_NOTES.md +227 -0
- zenml/VERSION +1 -1
- zenml/__init__.py +4 -9
- zenml/analytics/enums.py +0 -13
- zenml/artifact_stores/base_artifact_store.py +11 -0
- zenml/artifacts/artifact_config.py +19 -65
- zenml/artifacts/external_artifact.py +7 -53
- zenml/artifacts/external_artifact_config.py +21 -40
- zenml/artifacts/load_directory_materializer.py +91 -0
- zenml/artifacts/utils.py +320 -85
- zenml/cli/__init__.py +1 -39
- zenml/cli/base.py +5 -5
- zenml/cli/integration.py +0 -9
- zenml/cli/pipeline.py +1 -1
- zenml/cli/served_model.py +8 -1
- zenml/cli/server.py +8 -232
- zenml/cli/stack.py +1 -567
- zenml/cli/stack_components.py +0 -578
- zenml/cli/utils.py +0 -65
- zenml/client.py +11 -26
- zenml/client_lazy_loader.py +29 -12
- zenml/config/compiler.py +6 -11
- zenml/config/server_config.py +7 -5
- zenml/config/step_configurations.py +2 -0
- zenml/constants.py +3 -33
- zenml/enums.py +0 -3
- zenml/environment.py +1 -315
- zenml/exceptions.py +1 -41
- zenml/hooks/hook_validators.py +1 -8
- zenml/integrations/airflow/orchestrators/airflow_orchestrator.py +2 -3
- zenml/integrations/argilla/__init__.py +1 -1
- zenml/integrations/argilla/annotators/argilla_annotator.py +234 -89
- zenml/integrations/argilla/flavors/argilla_annotator_flavor.py +10 -5
- zenml/integrations/aws/flavors/sagemaker_orchestrator_flavor.py +9 -5
- zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +15 -2
- zenml/integrations/aws/service_connectors/aws_service_connector.py +6 -0
- zenml/integrations/azure/flavors/azureml_orchestrator_flavor.py +5 -4
- zenml/integrations/azure/orchestrators/azureml_orchestrator.py +1 -1
- zenml/integrations/bentoml/model_deployers/bentoml_model_deployer.py +85 -19
- zenml/integrations/bentoml/services/__init__.py +15 -4
- zenml/integrations/bentoml/services/bentoml_container_deployment.py +399 -0
- zenml/integrations/bentoml/services/{bentoml_deployment.py → bentoml_local_deployment.py} +81 -40
- zenml/{steps/base_parameters.py → integrations/bentoml/services/deployment_type.py} +8 -5
- zenml/integrations/bentoml/steps/bento_builder.py +1 -0
- zenml/integrations/bentoml/steps/bentoml_deployer.py +93 -41
- zenml/integrations/gitlab/code_repositories/gitlab_code_repository.py +6 -1
- zenml/integrations/huggingface/__init__.py +1 -6
- zenml/integrations/kaniko/image_builders/kaniko_image_builder.py +3 -3
- zenml/integrations/lightning/orchestrators/lightning_orchestrator.py +3 -3
- zenml/integrations/lightning/orchestrators/lightning_orchestrator_entrypoint.py +2 -2
- zenml/integrations/mlflow/experiment_trackers/mlflow_experiment_tracker.py +6 -3
- zenml/integrations/mlflow/model_registries/mlflow_model_registry.py +6 -0
- zenml/integrations/mlflow/services/mlflow_deployment.py +2 -2
- zenml/integrations/mlflow/steps/mlflow_deployer.py +1 -1
- zenml/integrations/mlflow/steps/mlflow_registry.py +1 -1
- zenml/integrations/neptune/experiment_trackers/run_state.py +2 -2
- zenml/integrations/pytorch/materializers/base_pytorch_materializer.py +8 -2
- zenml/integrations/pytorch/materializers/pytorch_module_materializer.py +4 -1
- zenml/integrations/s3/artifact_stores/s3_artifact_store.py +98 -0
- zenml/integrations/s3/flavors/s3_artifact_store_flavor.py +14 -0
- zenml/integrations/s3/utils.py +40 -0
- zenml/integrations/tensorflow/__init__.py +0 -9
- zenml/logging/step_logging.py +13 -15
- zenml/materializers/__init__.py +2 -0
- zenml/materializers/uuid_materializer.py +79 -0
- zenml/metadata/lazy_load.py +10 -7
- zenml/model/lazy_load.py +85 -4
- zenml/model/model.py +61 -45
- zenml/model/utils.py +47 -118
- zenml/models/__init__.py +3 -0
- zenml/models/v2/core/artifact_version.py +4 -15
- zenml/models/v2/core/model.py +1 -0
- zenml/models/v2/core/model_version.py +1 -1
- zenml/models/v2/core/pipeline_run.py +1 -2
- zenml/models/v2/core/run_metadata.py +2 -2
- zenml/models/v2/core/step_run.py +15 -12
- zenml/models/v2/misc/server_models.py +0 -4
- zenml/orchestrators/base_orchestrator.py +33 -0
- zenml/orchestrators/input_utils.py +52 -36
- zenml/orchestrators/step_launcher.py +49 -171
- zenml/orchestrators/step_run_utils.py +566 -0
- zenml/orchestrators/step_runner.py +102 -151
- zenml/orchestrators/utils.py +1 -158
- zenml/pipelines/__init__.py +3 -16
- zenml/{new/pipelines → pipelines}/pipeline_context.py +3 -18
- zenml/pipelines/pipeline_decorator.py +29 -60
- zenml/{new/pipelines/pipeline.py → pipelines/pipeline_definition.py} +4 -47
- zenml/stack/stack.py +1 -102
- zenml/stack/stack_component.py +0 -71
- zenml/stack_deployments/aws_stack_deployment.py +3 -0
- zenml/step_operators/step_operator_entrypoint_configuration.py +1 -1
- zenml/steps/__init__.py +3 -9
- zenml/steps/base_step.py +17 -265
- zenml/steps/entrypoint_function_utils.py +2 -80
- zenml/{new/steps → steps}/step_context.py +12 -63
- zenml/steps/step_decorator.py +42 -89
- zenml/steps/step_invocation.py +2 -55
- zenml/steps/utils.py +3 -23
- zenml/utils/dashboard_utils.py +16 -51
- zenml/utils/typing_utils.py +8 -28
- zenml/zen_server/dashboard/assets/{404-Y50hSt65.js → 404-DT4QRUqN.js} +1 -1
- zenml/zen_server/dashboard/assets/@radix-DP6vWzyx.js +85 -0
- zenml/zen_server/dashboard/assets/@react-router-BMhZulnd.js +29 -0
- zenml/zen_server/dashboard/assets/@reactflow-8U9qNlMR.js +17 -0
- zenml/zen_server/dashboard/assets/@tanstack-BUCbhJyH.js +22 -0
- zenml/zen_server/dashboard/assets/{AlertDialogDropdownItem-xLR9a1iw.js → AlertDialogDropdownItem-C6N2rGrB.js} +1 -1
- zenml/zen_server/dashboard/assets/{CodeSnippet-IxXNxUDa.js → CodeSnippet-CqybNv0k.js} +1 -1
- zenml/zen_server/dashboard/assets/{CollapsibleCard-BhutZbBL.js → CollapsibleCard-0r_8G2Lj.js} +1 -1
- zenml/zen_server/dashboard/assets/{Commands-Bf-rd1z8.js → Commands-BDjgBQKi.js} +1 -1
- zenml/zen_server/dashboard/assets/ComponentBadge-DUiEYJHu.js +1 -0
- zenml/zen_server/dashboard/assets/ComponentFallbackDialog-BFoH5K4V.js +1 -0
- zenml/zen_server/dashboard/assets/ComponentIcon-CAIoUis2.js +1 -0
- zenml/zen_server/dashboard/assets/{CopyButton-DcFHidFJ.js → CopyButton-C745BrKi.js} +1 -1
- zenml/zen_server/dashboard/assets/{CsvVizualization-QSbjrfxw.js → CsvVizualization-PpAq0CeZ.js} +5 -5
- zenml/zen_server/dashboard/assets/{DialogItem-Cd3HqST4.js → DialogItem-DcVCZEew.js} +1 -1
- zenml/zen_server/dashboard/assets/{DisplayDate-DkCy54Bp.js → DisplayDate-BeXgUG_C.js} +1 -1
- zenml/zen_server/dashboard/assets/{EmptyState-Cs3DEmso.js → EmptyState-DeK7H4pr.js} +1 -1
- zenml/zen_server/dashboard/assets/{Error-BhwdmqK7.js → Error-BMlzibXj.js} +1 -1
- zenml/zen_server/dashboard/assets/{Helpbox-0pBpTwTm.js → Helpbox-BLf40fLV.js} +1 -1
- zenml/zen_server/dashboard/assets/{Infobox-BTK_EUKT.js → Infobox-BwisKifi.js} +1 -1
- zenml/zen_server/dashboard/assets/{InlineAvatar-CA3DFMcM.js → InlineAvatar-jEgodSgX.js} +1 -1
- zenml/zen_server/dashboard/assets/{Lock-CmIn0szs.js → Lock-3lLt1ih0.js} +1 -1
- zenml/zen_server/dashboard/assets/MarkdownVisualization-8O9kTr-2.js +14 -0
- zenml/zen_server/dashboard/assets/{NumberBox-CrN0_kqI.js → NumberBox-T9eELfLZ.js} +1 -1
- zenml/zen_server/dashboard/assets/{Partials-QLOZw624.js → Partials-YPBB3V4q.js} +1 -1
- zenml/zen_server/dashboard/assets/{PasswordChecker-DE71J_3F.js → PasswordChecker-CW0kqY0W.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderIcon-C16CCIN4.js → ProviderIcon-Bb3Xha5A.js} +1 -1
- zenml/zen_server/dashboard/assets/{ProviderRadio-D3FuCHf3.js → ProviderRadio-BROY1700.js} +1 -1
- zenml/zen_server/dashboard/assets/RunSelector-DCiL3M1c.js +1 -0
- zenml/zen_server/dashboard/assets/SearchField-DfUiGFVd.js +1 -0
- zenml/zen_server/dashboard/assets/{SecretTooltip-BaMwHF-Q.js → SecretTooltip-C_qByGWB.js} +1 -1
- zenml/zen_server/dashboard/assets/{SetPassword-DuIC65H9.js → SetPassword-7pRB00El.js} +1 -1
- zenml/zen_server/dashboard/assets/{Tick-DJTCF0Re.js → Tick-CykQFPj2.js} +1 -1
- zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-CUm-DMpw.js → UpdatePasswordSchemas-DckMEkFf.js} +1 -1
- zenml/zen_server/dashboard/assets/{UsageReason-CKw0juLF.js → UsageReason-DVceN14P.js} +1 -1
- zenml/zen_server/dashboard/assets/{WizardFooter-Cv9ApYWU.js → WizardFooter-CW0Cvd70.js} +1 -1
- zenml/zen_server/dashboard/assets/{check-circle-DOoS4yhF.js → check-circle-Dwxliy1Z.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-down-Cwb-W_B_.js → chevron-down-8wLBS5pQ.js} +1 -1
- zenml/zen_server/dashboard/assets/{chevron-right-double-c9H46Kl8.js → chevron-right-double-DoD8iXWM.js} +1 -1
- zenml/zen_server/dashboard/assets/{cloud-only-BB4BVa6E.js → cloud-only-B-s_HMDm.js} +1 -1
- zenml/zen_server/dashboard/assets/{code-browser-BJYErIjr.js → code-browser-CZUQs3Wa.js} +1 -1
- zenml/zen_server/dashboard/assets/{copy-CaGlDsUy.js → copy-CaSMXwiU.js} +1 -1
- zenml/zen_server/dashboard/assets/{create-stack-F29xAUEx.js → create-stack-CEmaPZ4c.js} +1 -1
- zenml/zen_server/dashboard/assets/delete-run-D-LKbGyz.js +1 -0
- zenml/zen_server/dashboard/assets/{docker-BFAFXr2_.js → docker-BFNgg-z3.js} +1 -1
- zenml/zen_server/dashboard/assets/{dots-horizontal-C6K59vUm.js → dots-horizontal-DK5Duzx4.js} +1 -1
- zenml/zen_server/dashboard/assets/{form-schemas-BKXwSDK2.js → form-schemas-1AyOCx90.js} +1 -1
- zenml/zen_server/dashboard/assets/{gcp-Dj6ntk0L.js → gcp-7M2Yf3ZK.js} +1 -1
- zenml/zen_server/dashboard/assets/{help-CwN931fX.js → help-Dam461dC.js} +1 -1
- zenml/zen_server/dashboard/assets/{index-5GJ5ysEZ.js → index-BVJ8n2-j.js} +1 -1
- zenml/zen_server/dashboard/assets/index-Bpmj40BI.js +1 -0
- zenml/zen_server/dashboard/assets/index-CbU4Ln_E.css +1 -0
- zenml/zen_server/dashboard/assets/{index-D-mtoBj3.js → index-DKPhqP2B.js} +1 -1
- zenml/zen_server/dashboard/assets/index-QQb7wQEC.js +55 -0
- zenml/zen_server/dashboard/assets/index.esm-cuVep_NJ.js +1 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-400-normal-BLGc9T1a.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-400-normal-ZzOtrSSW.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-500-normal-D4Vwzodn.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-500-normal-DH2hs3aW.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-600-normal-BGBWG807.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-600-normal-BuzJQFbW.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-400-normal-BPnxn4xp.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-400-normal-Dc4VJyIJ.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-500-normal-BShVwWPj.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-500-normal-CUiC4oBV.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-600-normal-Bt9VVOA-.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-600-normal-CaqZN2hq.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-400-normal-BZzXV7-1.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-400-normal-DxZsaF_h.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-500-normal-CeQXL5ds.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-500-normal-d_eO-yCQ.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-600-normal-CwicyhtI.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-600-normal-Dhlb-90d.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-400-normal-Bput3-QP.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-400-normal-DCpCPQOf.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-500-normal-B6guLgqG.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-500-normal-M2hEX8vc.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-600-normal-C9WLioJ8.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-600-normal-Cnui8OiR.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-400-normal-BOOGhInR.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-400-normal-gitzw0hO.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-500-normal-D2bGa7uu.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-500-normal-deR1Tlfd.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-600-normal-B5cFAncS.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-600-normal-D273HNI0.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-400-normal-C1t-h-pH.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-400-normal-hnt3BR84.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-500-normal-CIS2RHJS.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-500-normal-UMdmhHu2.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-600-normal-BnYJhD27.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-600-normal-CAF0vJDd.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-400-normal-BUNmGMP1.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-500-normal-DQPw2Hwd.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-600-normal-Cm6aH8_k.woff +0 -0
- zenml/zen_server/dashboard/assets/{kubernetes-BjbR6D-1.js → kubernetes--g7r02Zu.js} +1 -1
- zenml/zen_server/dashboard/assets/{layout-Dru15_XR.js → layout-DCSYN7-C.js} +1 -1
- zenml/zen_server/dashboard/assets/{link-external-BT2L8hAQ.js → link-external-CBEk6kEG.js} +1 -1
- zenml/zen_server/dashboard/assets/{login-mutation-ax6iL2Mb.js → login-mutation-DTcAFP1l.js} +1 -1
- zenml/zen_server/dashboard/assets/{logs-GiDJXbLS.js → logs-D5bdJGur.js} +1 -1
- zenml/zen_server/dashboard/assets/not-found-Cc-JkRH2.js +1 -0
- zenml/zen_server/dashboard/assets/{package-DYKZ5jKW.js → package-Cs35Szwh.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-HkVBdZl6.js → page-9yplj5JT.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-uORspyRu.js → page-B-y2XKIc.js} +1 -1
- zenml/zen_server/dashboard/assets/page-BBpOxVcY.js +1 -0
- zenml/zen_server/dashboard/assets/{page-BDg1F-Ug.js → page-BQQKaabe.js} +2 -2
- zenml/zen_server/dashboard/assets/page-BRInM1Lg.js +1 -0
- zenml/zen_server/dashboard/assets/{page-CvKnNK1S.js → page-BjjlMk7s.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BukXK1Aa.js → page-Bvd7YH2A.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DcTjHmYZ.js → page-C0N5q3l7.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CT3Nep8W.js +1 -0
- zenml/zen_server/dashboard/assets/{page-DuqYMYmH.js → page-C_f47pBf.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DRfcRK1w.js → page-ClUVkl-O.js} +1 -1
- zenml/zen_server/dashboard/assets/page-Cmv8C_yM.js +3 -0
- zenml/zen_server/dashboard/assets/{page-p0BhSAWx.js → page-CyN2bdWG.js} +1 -1
- zenml/zen_server/dashboard/assets/page-CzzXH4fs.js +1 -0
- zenml/zen_server/dashboard/assets/{page-6mfzecin.js → page-DH_Z7iW1.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-8kYmrh0B.js → page-DIOXwhiD.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-BXarY9K2.js → page-DLixvR-7.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DTlGjgnG.js +1 -0
- zenml/zen_server/dashboard/assets/page-Dbpl86h0.js +1 -0
- zenml/zen_server/dashboard/assets/{page-MAXyfXBq.js → page-Ddgy6kDS.js} +1 -1
- zenml/zen_server/dashboard/assets/page-DtCAfBLy.js +9 -0
- zenml/zen_server/dashboard/assets/{page-CKHNAq7z.js → page-Dx16z7nA.js} +1 -1
- zenml/zen_server/dashboard/assets/{page-DMSLXKGT.js → page-DzpVUZ8f.js} +1 -1
- zenml/zen_server/dashboard/assets/page-McUyYbo1.js +1 -0
- zenml/zen_server/dashboard/assets/{page-miU2rhYG.js → page-N4qoPHKb.js} +1 -1
- zenml/zen_server/dashboard/assets/page-T1P3RyAR.js +1 -0
- zenml/zen_server/dashboard/assets/{page-3qPX9WYH.js → page-bKaULTGG.js} +1 -1
- zenml/zen_server/dashboard/assets/page-sbXUJy9t.js +1 -0
- zenml/zen_server/dashboard/assets/{persist-CfJMar_k.js → persist-CP0JmYZ4.js} +1 -1
- zenml/zen_server/dashboard/assets/{persist-BxIR2XZs.js → persist-DNb5cdrU.js} +1 -1
- zenml/zen_server/dashboard/assets/{plus-Bc8eLSDM.js → plus-C9IxgN2M.js} +1 -1
- zenml/zen_server/dashboard/assets/{refresh-hfgWPeto.js → refresh-BVu22P_C.js} +1 -1
- zenml/zen_server/dashboard/assets/{rocket-SESCGQXm.js → rocket-CONEmRmB.js} +1 -1
- zenml/zen_server/dashboard/assets/{sharedSchema-vub0rii3.js → sharedSchema-TMLu-nYQ.js} +1 -1
- zenml/zen_server/dashboard/assets/stack-detail-query-xmYxSsUY.js +1 -0
- zenml/zen_server/dashboard/assets/{tick-circle-m-hJG8i9.js → tick-circle-CM1ZScbQ.js} +1 -1
- zenml/zen_server/dashboard/assets/{trash-DUWZWzse.js → trash-DkJHMOg7.js} +1 -1
- zenml/zen_server/dashboard/assets/{update-server-settings-mutation-FGVP7X2U.js → update-server-settings-mutation-DsU8cNVl.js} +1 -1
- zenml/zen_server/dashboard/assets/{url-CbAPzsmT.js → url-D5le3J4q.js} +1 -1
- zenml/zen_server/dashboard/assets/zod-D89GC_vc.js +1 -0
- zenml/zen_server/dashboard/index.html +7 -7
- zenml/zen_server/deploy/__init__.py +0 -9
- zenml/zen_server/deploy/docker/docker_zen_server.py +0 -6
- zenml/zen_server/deploy/helm/Chart.yaml +1 -1
- zenml/zen_server/deploy/helm/README.md +2 -2
- zenml/zen_server/deploy/local/local_zen_server.py +0 -6
- zenml/zen_server/feature_gate/zenml_cloud_feature_gate.py +1 -1
- zenml/zen_server/routers/artifact_version_endpoints.py +1 -1
- zenml/zen_server/routers/runs_endpoints.py +0 -28
- zenml/zen_server/template_execution/runner_entrypoint_configuration.py +1 -1
- zenml/zen_server/template_execution/utils.py +2 -2
- zenml/zen_server/utils.py +10 -40
- zenml/zen_server/zen_server_api.py +107 -17
- zenml/zen_stores/base_zen_store.py +0 -2
- zenml/zen_stores/migrations/versions/0.67.0_release.py +23 -0
- zenml/zen_stores/migrations/versions/0.68.0_release.py +23 -0
- zenml/zen_stores/migrations/versions/1d8f30c54477_migrate_to_new_.py +124 -0
- zenml/zen_stores/schemas/pipeline_run_schemas.py +12 -4
- zenml/zen_stores/schemas/step_run_schemas.py +2 -2
- zenml/zen_stores/sql_zen_store.py +29 -5
- {zenml_nightly-0.66.0.dev20240930.dist-info → zenml_nightly-0.68.0.dev20241026.dist-info}/METADATA +4 -8
- {zenml_nightly-0.66.0.dev20240930.dist-info → zenml_nightly-0.68.0.dev20241026.dist-info}/RECORD +273 -452
- {zenml_nightly-0.66.0.dev20240930.dist-info → zenml_nightly-0.68.0.dev20241026.dist-info}/WHEEL +1 -1
- zenml/cli/stack_recipes.py +0 -469
- zenml/lineage_graph/__init__.py +0 -34
- zenml/lineage_graph/edge.py +0 -24
- zenml/lineage_graph/lineage_graph.py +0 -244
- zenml/lineage_graph/node/__init__.py +0 -32
- zenml/lineage_graph/node/artifact_node.py +0 -51
- zenml/lineage_graph/node/base_node.py +0 -31
- zenml/lineage_graph/node/step_node.py +0 -41
- zenml/model/model_version.py +0 -38
- zenml/new/__init__.py +0 -13
- zenml/new/pipelines/__init__.py +0 -13
- zenml/new/pipelines/code_archive.py +0 -157
- zenml/new/pipelines/pipeline_decorator.py +0 -118
- zenml/new/steps/__init__.py +0 -13
- zenml/new/steps/step_decorator.py +0 -176
- zenml/pipelines/base_pipeline.py +0 -273
- zenml/post_execution/__init__.py +0 -30
- zenml/post_execution/pipeline.py +0 -55
- zenml/post_execution/pipeline_run.py +0 -55
- zenml/services/terraform/__init__.py +0 -14
- zenml/services/terraform/terraform_service.py +0 -441
- zenml/steps/external_artifact.py +0 -26
- zenml/steps/step_environment.py +0 -108
- zenml/steps/step_output.py +0 -36
- zenml/utils/mlstacks_utils.py +0 -635
- zenml/utils/terraform_utils.py +0 -43
- zenml/zen_server/dashboard/assets/@radix-DnFH_oo1.js +0 -85
- zenml/zen_server/dashboard/assets/@react-router-APVeuk-U.js +0 -29
- zenml/zen_server/dashboard/assets/@reactflow-ytavUpwh.js +0 -17
- zenml/zen_server/dashboard/assets/@tanstack-QbMbTrh5.js +0 -22
- zenml/zen_server/dashboard/assets/ComponentBadge-gKR1OIwG.js +0 -1
- zenml/zen_server/dashboard/assets/ExecutionStatus-D6r6aK8J.js +0 -1
- zenml/zen_server/dashboard/assets/MarkdownVisualization-DS05sfBm.js +0 -14
- zenml/zen_server/dashboard/assets/SearchField-BzmfxS0L.js +0 -1
- zenml/zen_server/dashboard/assets/all-pipeline-runs-query-BA3R2Sey.js +0 -1
- zenml/zen_server/dashboard/assets/delete-run-CP0pcJ3U.js +0 -1
- zenml/zen_server/dashboard/assets/index-BhJ6ZJxv.css +0 -1
- zenml/zen_server/dashboard/assets/index-Ci0nJ8EZ.js +0 -55
- zenml/zen_server/dashboard/assets/index.esm-BE1uqCX5.js +0 -1
- zenml/zen_server/dashboard/assets/inter-cyrillic-400-normal-Df6ckaLK.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-400-normal-JrS_4yms.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-500-normal-BRrLR67x.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-500-normal-DskEQOpE.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-600-normal-DDpWG8g5.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-600-normal-iz1--dBq.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-400-normal-CzG7Kr3z.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-400-normal-tyfMZHQw.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-500-normal-DOnSzjnx.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-500-normal-Xebo2OyJ.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-600-normal-DpA2xaRd.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-cyrillic-ext-600-normal-KAwcVx6H.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-400-normal-DQXyrmoy.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-400-normal-DvIPHDQ7.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-500-normal-BjpBGs91.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-500-normal-CmOavsDc.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-600-normal-B-l8Lzzd.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-600-normal-BLZsI-P3.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-400-normal-CIdlr5YK.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-400-normal-_Rr29XE2.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-500-normal-2pdUafRD.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-500-normal-Dtavx3qw.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-600-normal-BmtRFZgT.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-greek-ext-600-normal-CkBLDEl_.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-400-normal-BT1H-PT_.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-400-normal-Cdi8t5Mu.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-500-normal-D4I8BKCx.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-500-normal-kWhwEdDH.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-600-normal-B2Ssfs8e.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-600-normal-Dbvh0wvx.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-400-normal-8tIzm-yw.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-400-normal-D3W-OpO-.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-500-normal-B9u8Q_zH.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-500-normal-SuUkSNTU.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-600-normal-Dg0Bk0Yr.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-latin-ext-600-normal-ao35dkSb.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-400-normal-Cnt0N5Vm.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-400-normal-DIOGfGLL.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-500-normal-0i6yoQMg.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-500-normal-5IkPJ6Nk.woff2 +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-600-normal-BQ_dbMbg.woff +0 -0
- zenml/zen_server/dashboard/assets/inter-vietnamese-600-normal-DjnxGF-L.woff2 +0 -0
- zenml/zen_server/dashboard/assets/not-found-DbjllLY_.js +0 -1
- zenml/zen_server/dashboard/assets/page-B1n7_W7z.js +0 -1
- zenml/zen_server/dashboard/assets/page-BZZhLo2u.js +0 -1
- zenml/zen_server/dashboard/assets/page-Bbf_oBjn.js +0 -1
- zenml/zen_server/dashboard/assets/page-BjjuBvZG.js +0 -9
- zenml/zen_server/dashboard/assets/page-CHaQkFK5.js +0 -1
- zenml/zen_server/dashboard/assets/page-CS0SYFK8.js +0 -1
- zenml/zen_server/dashboard/assets/page-DGM1CbYT.js +0 -2
- zenml/zen_server/dashboard/assets/page-DOmIZ2ra.js +0 -1
- zenml/zen_server/dashboard/assets/page-DYVmJ9_w.js +0 -3
- zenml/zen_server/dashboard/assets/page-Dwow2doB.js +0 -1
- zenml/zen_server/dashboard/assets/stack-detail-query-DQcyzG-2.js +0 -1
- zenml/zen_server/dashboard/assets/zod-uFd1wBcd.js +0 -1
- zenml/zen_server/dashboard_legacy/_redirects +0 -1
- zenml/zen_server/dashboard_legacy/asset-manifest.json +0 -131
- zenml/zen_server/dashboard_legacy/favicon.ico +0 -0
- zenml/zen_server/dashboard_legacy/index.html +0 -1
- zenml/zen_server/dashboard_legacy/manifest.json +0 -25
- zenml/zen_server/dashboard_legacy/precache-manifest.6d320abb70db612019dda6c4948e7a90.js +0 -462
- zenml/zen_server/dashboard_legacy/robots.txt +0 -2
- zenml/zen_server/dashboard_legacy/service-worker.js +0 -39
- zenml/zen_server/dashboard_legacy/static/css/2.5b37d44a.chunk.css +0 -16
- zenml/zen_server/dashboard_legacy/static/css/2.5b37d44a.chunk.css.map +0 -1
- zenml/zen_server/dashboard_legacy/static/css/main.e79dff04.chunk.css +0 -2
- zenml/zen_server/dashboard_legacy/static/css/main.e79dff04.chunk.css.map +0 -1
- zenml/zen_server/dashboard_legacy/static/js/2.7934458d.chunk.js +0 -3
- zenml/zen_server/dashboard_legacy/static/js/2.7934458d.chunk.js.LICENSE.txt +0 -95
- zenml/zen_server/dashboard_legacy/static/js/2.7934458d.chunk.js.map +0 -1
- zenml/zen_server/dashboard_legacy/static/js/main.fa9299d5.chunk.js +0 -2
- zenml/zen_server/dashboard_legacy/static/js/main.fa9299d5.chunk.js.map +0 -1
- zenml/zen_server/dashboard_legacy/static/js/runtime-main.bfca2edd.js +0 -2
- zenml/zen_server/dashboard_legacy/static/js/runtime-main.bfca2edd.js.map +0 -1
- zenml/zen_server/dashboard_legacy/static/media/AlertTriangle.28aee535.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/ArrowSquareOut.abfb9bc7.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/Back.86c23a22.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/BookOpen.5cb101ff.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/BoundingBox.1eb98717.svg +0 -10
- zenml/zen_server/dashboard_legacy/static/media/Burger.9b1c67d7.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Cached.2381fb8d.svg +0 -1
- zenml/zen_server/dashboard_legacy/static/media/Calendar.356e11c7.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/ChartBarHorizontal.0247447b.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/ChartLine.0d79e18d.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/ChatDots.2e1c9211.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/Check.dad6beb2.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/CheckCircleFilled.c19566d0.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Checkbox.af50e31e.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/ChevronDown.f860ce32.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/ChevronDownLight.6642d756.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/ChevronLeft.f6edfcdb.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/CircleCheck.f98fd6ca.svg +0 -1
- zenml/zen_server/dashboard_legacy/static/media/Clock.ffc9de95.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Close.74e9efbc.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/CloseWithBorder.6960930a.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/CloseWithoutBorder.cd6f71df.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/CloudArrowUp.0aecb235.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/Code.ef0f33b5.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Config.0be63f8a.svg +0 -1
- zenml/zen_server/dashboard_legacy/static/media/Connector.9fd46ef1.svg +0 -10
- zenml/zen_server/dashboard_legacy/static/media/Copy.36e2112a.svg +0 -1
- zenml/zen_server/dashboard_legacy/static/media/Dashboard.d05787e0.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Data.b1c3b5f8.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Delete.3c361b28.svg +0 -8
- zenml/zen_server/dashboard_legacy/static/media/Docs.7541d478.svg +0 -7
- zenml/zen_server/dashboard_legacy/static/media/Download.fba04d87.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/Edit.490eb294.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/EmptyRightArrow.23749d01.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Example.6396cd37.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/Extension.1394cd4a.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Eye.d9e4ee62.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/Failed.0213c1a0.svg +0 -1
- zenml/zen_server/dashboard_legacy/static/media/FileText.1f15bacd.svg +0 -7
- zenml/zen_server/dashboard_legacy/static/media/Filter.ab6b9c0d.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Folders.12b29887.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/FunnelFill.6df4c143.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/GitCommit.7dd9c2aa.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/GitHub_Logo.cefc2023.png +0 -0
- zenml/zen_server/dashboard_legacy/static/media/Graph.2c63a892.svg +0 -11
- zenml/zen_server/dashboard_legacy/static/media/History.08329240.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Home.0843b0d5.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/ImageBuilder.ea762d9c.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/InProgress.304a0edc.svg +0 -1
- zenml/zen_server/dashboard_legacy/static/media/Info.9fe10c5c.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/KeyboardReturn.491afbe3.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Link.72bbb55d.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/Lock.30f5e1fe.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/Lock2.a769ea52.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/LockKey.92f21621.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/Logs.8bf4d005.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/MinusCircle.4188f418.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/ModelRegistry.f0de050a.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/MultiUser.a2ba7c67.svg +0 -10
- zenml/zen_server/dashboard_legacy/static/media/PaginationFirst.92628634.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/PaginationLast.00d3c732.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/PaginationNext.86158845.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/PaginationPrev.60c18a88.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Pen.f2d831d4.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/PhotoCamera.179d6d4c.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Pipeline.30d298b0.svg +0 -7
- zenml/zen_server/dashboard_legacy/static/media/Plus.5aa1c16b.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/PlusCircle.92d860dd.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/Repositories.71a36b8c.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/RightArrow.f30d3871.svg +0 -29
- zenml/zen_server/dashboard_legacy/static/media/Rocket.63bf7b9d.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/RocketLaunch.1bff2b59.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/Rubik-Medium.c87313aa.ttf +0 -0
- zenml/zen_server/dashboard_legacy/static/media/Rubik-Regular.b3d0902b.ttf +0 -0
- zenml/zen_server/dashboard_legacy/static/media/Run.daec4fb2.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/Search.d1afcce5.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/Settings.59ca73ae.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/Share2.46c3ff66.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/SignOut.6aa718c5.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/SimplePlus.5cf7ec20.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/SingleUser.bef3a095.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/SourceCodePro-Regular.b484b32f.ttf +0 -0
- zenml/zen_server/dashboard_legacy/static/media/Stack.19b604ac.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/StackComponent.b1ba90b5.svg +0 -4
- zenml/zen_server/dashboard_legacy/static/media/Star.f0c25022.svg +0 -9
- zenml/zen_server/dashboard_legacy/static/media/StarOutline.94ca8cd9.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Storefront.4b4796fe.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/Stream.543e3039.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/SupportAgent.510ddf1f.svg +0 -8
- zenml/zen_server/dashboard_legacy/static/media/Table.77033750.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/Tool.d5785486.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/UserPlus.741a99d7.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/Verified.0625b2a0.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/addNew.4fb6c939.svg +0 -8
- zenml/zen_server/dashboard_legacy/static/media/arrowClose.cbd53f3f.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/arrowOpen.6ceef0af.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/check_small.30bc0138.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/circleArrowSideClose.98d6013e.svg +0 -18
- zenml/zen_server/dashboard_legacy/static/media/circleArrowSideOpen.63653df6.svg +0 -18
- zenml/zen_server/dashboard_legacy/static/media/image.104fd14b.png +0 -0
- zenml/zen_server/dashboard_legacy/static/media/imageAddIcon.e83004a9.svg +0 -7
- zenml/zen_server/dashboard_legacy/static/media/logo.93333e5c.svg +0 -1
- zenml/zen_server/dashboard_legacy/static/media/logo_small.4204397d.svg +0 -3
- zenml/zen_server/dashboard_legacy/static/media/logo_white.d4b4414e.svg +0 -20
- zenml/zen_server/dashboard_legacy/static/media/notConnected.5e2c8ea7.svg +0 -8
- zenml/zen_server/dashboard_legacy/static/media/plugin-fallback.72c294e6.svg +0 -6
- zenml/zen_server/dashboard_legacy/static/media/share.bcd998b0.svg +0 -5
- zenml/zen_server/dashboard_legacy/static/media/stars.08a9b19a.svg +0 -8
- zenml/zen_server/deploy/terraform/__init__.py +0 -41
- zenml/zen_server/deploy/terraform/providers/__init__.py +0 -14
- zenml/zen_server/deploy/terraform/providers/aws_provider.py +0 -61
- zenml/zen_server/deploy/terraform/providers/azure_provider.py +0 -59
- zenml/zen_server/deploy/terraform/providers/gcp_provider.py +0 -59
- zenml/zen_server/deploy/terraform/providers/terraform_provider.py +0 -331
- zenml/zen_server/deploy/terraform/recipes/aws/.gitignore +0 -8
- zenml/zen_server/deploy/terraform/recipes/aws/helm.tf +0 -20
- zenml/zen_server/deploy/terraform/recipes/aws/ingress.tf +0 -30
- zenml/zen_server/deploy/terraform/recipes/aws/outputs.tf +0 -7
- zenml/zen_server/deploy/terraform/recipes/aws/printf.cmd +0 -2
- zenml/zen_server/deploy/terraform/recipes/aws/sql.tf +0 -62
- zenml/zen_server/deploy/terraform/recipes/aws/terraform.tf +0 -44
- zenml/zen_server/deploy/terraform/recipes/aws/variables.tf +0 -167
- zenml/zen_server/deploy/terraform/recipes/aws/vpc.tf +0 -47
- zenml/zen_server/deploy/terraform/recipes/aws/zen_server.tf +0 -103
- zenml/zen_server/deploy/terraform/recipes/azure/.gitignore +0 -8
- zenml/zen_server/deploy/terraform/recipes/azure/helm.tf +0 -20
- zenml/zen_server/deploy/terraform/recipes/azure/ingress.tf +0 -30
- zenml/zen_server/deploy/terraform/recipes/azure/key_vault.tf +0 -73
- zenml/zen_server/deploy/terraform/recipes/azure/outputs.tf +0 -7
- zenml/zen_server/deploy/terraform/recipes/azure/printf.cmd +0 -2
- zenml/zen_server/deploy/terraform/recipes/azure/rg.tf +0 -36
- zenml/zen_server/deploy/terraform/recipes/azure/sql.tf +0 -65
- zenml/zen_server/deploy/terraform/recipes/azure/terraform.tf +0 -52
- zenml/zen_server/deploy/terraform/recipes/azure/variables.tf +0 -176
- zenml/zen_server/deploy/terraform/recipes/azure/zen_server.tf +0 -103
- zenml/zen_server/deploy/terraform/recipes/gcp/.gitignore +0 -8
- zenml/zen_server/deploy/terraform/recipes/gcp/helm.tf +0 -20
- zenml/zen_server/deploy/terraform/recipes/gcp/ingress.tf +0 -30
- zenml/zen_server/deploy/terraform/recipes/gcp/outputs.tf +0 -7
- zenml/zen_server/deploy/terraform/recipes/gcp/printf.cmd +0 -2
- zenml/zen_server/deploy/terraform/recipes/gcp/sql.tf +0 -64
- zenml/zen_server/deploy/terraform/recipes/gcp/terraform.tf +0 -44
- zenml/zen_server/deploy/terraform/recipes/gcp/variables.tf +0 -171
- zenml/zen_server/deploy/terraform/recipes/gcp/zen_server.tf +0 -114
- zenml/zen_server/deploy/terraform/terraform_zen_server.py +0 -246
- /zenml/{new/pipelines → pipelines}/build_utils.py +0 -0
- /zenml/{new/pipelines → pipelines}/run_utils.py +0 -0
- /zenml/{new/steps → steps}/decorated_step.py +0 -0
- {zenml_nightly-0.66.0.dev20240930.dist-info → zenml_nightly-0.68.0.dev20241026.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.66.0.dev20240930.dist-info → zenml_nightly-0.68.0.dev20241026.dist-info}/entry_points.txt +0 -0
@@ -26,7 +26,6 @@ from typing import (
|
|
26
26
|
Tuple,
|
27
27
|
Type,
|
28
28
|
)
|
29
|
-
from uuid import UUID
|
30
29
|
|
31
30
|
from zenml.artifacts.unmaterialized_artifact import UnmaterializedArtifact
|
32
31
|
from zenml.artifacts.utils import save_artifact
|
@@ -41,20 +40,14 @@ from zenml.exceptions import StepInterfaceError
|
|
41
40
|
from zenml.logger import get_logger
|
42
41
|
from zenml.logging.step_logging import StepLogsStorageContext, redirected
|
43
42
|
from zenml.materializers.base_materializer import BaseMaterializer
|
44
|
-
from zenml.model.utils import (
|
45
|
-
link_step_artifacts_to_model,
|
46
|
-
)
|
47
|
-
from zenml.new.steps.step_context import StepContext, get_step_context
|
48
43
|
from zenml.orchestrators.publish_utils import (
|
49
44
|
publish_step_run_metadata,
|
50
45
|
publish_successful_step_run,
|
51
46
|
)
|
52
47
|
from zenml.orchestrators.utils import (
|
53
|
-
_link_pipeline_run_to_model_from_artifacts,
|
54
|
-
_link_pipeline_run_to_model_from_context,
|
55
48
|
is_setting_enabled,
|
56
49
|
)
|
57
|
-
from zenml.steps.
|
50
|
+
from zenml.steps.step_context import StepContext, get_step_context
|
58
51
|
from zenml.steps.utils import (
|
59
52
|
OutputSignature,
|
60
53
|
parse_return_type_annotations,
|
@@ -135,7 +128,8 @@ class StepRunner:
|
|
135
128
|
if step_logging_enabled and not redirected.get():
|
136
129
|
if step_run.logs:
|
137
130
|
logs_context = StepLogsStorageContext( # type: ignore[assignment]
|
138
|
-
logs_uri=step_run.logs.uri
|
131
|
+
logs_uri=step_run.logs.uri,
|
132
|
+
artifact_store=self._stack.artifact_store,
|
139
133
|
)
|
140
134
|
else:
|
141
135
|
logger.debug(
|
@@ -150,124 +144,113 @@ class StepRunner:
|
|
150
144
|
inspect.unwrap(step_instance.entrypoint)
|
151
145
|
)
|
152
146
|
|
153
|
-
# (Deprecated) Wrap the execution of the step function in a step
|
154
|
-
# environment that the step function code can access to retrieve
|
155
|
-
# information about the pipeline runtime, such as the current step
|
156
|
-
# name and the current pipeline run ID
|
157
|
-
cache_enabled = is_setting_enabled(
|
158
|
-
is_enabled_on_step=step_run_info.config.enable_cache,
|
159
|
-
is_enabled_on_pipeline=step_run_info.pipeline.enable_cache,
|
160
|
-
)
|
161
147
|
output_annotations = parse_return_type_annotations(
|
162
148
|
func=step_instance.entrypoint
|
163
149
|
)
|
164
|
-
with StepEnvironment(
|
165
|
-
step_run_info=step_run_info,
|
166
|
-
cache_enabled=cache_enabled,
|
167
|
-
):
|
168
|
-
self._stack.prepare_step_run(info=step_run_info)
|
169
|
-
|
170
|
-
# Initialize the step context singleton
|
171
|
-
StepContext._clear()
|
172
|
-
StepContext(
|
173
|
-
pipeline_run=pipeline_run,
|
174
|
-
step_run=step_run,
|
175
|
-
output_materializers=output_materializers,
|
176
|
-
output_artifact_uris=output_artifact_uris,
|
177
|
-
step_run_info=step_run_info,
|
178
|
-
cache_enabled=cache_enabled,
|
179
|
-
output_artifact_configs={
|
180
|
-
k: v.artifact_config
|
181
|
-
for k, v in output_annotations.items()
|
182
|
-
},
|
183
|
-
)
|
184
150
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
151
|
+
self._stack.prepare_step_run(info=step_run_info)
|
152
|
+
|
153
|
+
# Initialize the step context singleton
|
154
|
+
StepContext._clear()
|
155
|
+
StepContext(
|
156
|
+
pipeline_run=pipeline_run,
|
157
|
+
step_run=step_run,
|
158
|
+
output_materializers=output_materializers,
|
159
|
+
output_artifact_uris=output_artifact_uris,
|
160
|
+
output_artifact_configs={
|
161
|
+
k: v.artifact_config for k, v in output_annotations.items()
|
162
|
+
},
|
163
|
+
)
|
164
|
+
|
165
|
+
# Parse the inputs for the entrypoint function.
|
166
|
+
function_params = self._parse_inputs(
|
167
|
+
args=spec.args,
|
168
|
+
annotations=spec.annotations,
|
169
|
+
input_artifacts=input_artifacts,
|
170
|
+
)
|
191
171
|
|
192
|
-
|
193
|
-
|
172
|
+
step_failed = False
|
173
|
+
try:
|
174
|
+
return_values = step_instance.call_entrypoint(
|
175
|
+
**function_params
|
194
176
|
)
|
177
|
+
except BaseException as step_exception: # noqa: E722
|
178
|
+
step_failed = True
|
179
|
+
if not handle_bool_env_var(
|
180
|
+
ENV_ZENML_IGNORE_FAILURE_HOOK, False
|
181
|
+
):
|
182
|
+
if (
|
183
|
+
failure_hook_source
|
184
|
+
:= self.configuration.failure_hook_source
|
185
|
+
):
|
186
|
+
logger.info("Detected failure hook. Running...")
|
187
|
+
self.load_and_run_hook(
|
188
|
+
failure_hook_source,
|
189
|
+
step_exception=step_exception,
|
190
|
+
)
|
191
|
+
raise
|
192
|
+
finally:
|
193
|
+
step_run_metadata = self._stack.get_step_run_metadata(
|
194
|
+
info=step_run_info,
|
195
|
+
)
|
196
|
+
publish_step_run_metadata(
|
197
|
+
step_run_id=step_run_info.step_run_id,
|
198
|
+
step_run_metadata=step_run_metadata,
|
199
|
+
)
|
200
|
+
self._stack.cleanup_step_run(
|
201
|
+
info=step_run_info, step_failed=step_failed
|
202
|
+
)
|
203
|
+
if not step_failed:
|
204
|
+
if (
|
205
|
+
success_hook_source
|
206
|
+
:= self.configuration.success_hook_source
|
207
|
+
):
|
208
|
+
logger.info("Detected success hook. Running...")
|
209
|
+
self.load_and_run_hook(
|
210
|
+
success_hook_source,
|
211
|
+
step_exception=None,
|
212
|
+
)
|
195
213
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
**function_params
|
214
|
+
# Store and publish the output artifacts of the step function.
|
215
|
+
output_data = self._validate_outputs(
|
216
|
+
return_values, output_annotations
|
200
217
|
)
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
ENV_ZENML_IGNORE_FAILURE_HOOK, False
|
205
|
-
):
|
206
|
-
if (
|
207
|
-
failure_hook_source
|
208
|
-
:= self.configuration.failure_hook_source
|
209
|
-
):
|
210
|
-
logger.info("Detected failure hook. Running...")
|
211
|
-
self.load_and_run_hook(
|
212
|
-
failure_hook_source,
|
213
|
-
step_exception=step_exception,
|
214
|
-
)
|
215
|
-
raise
|
216
|
-
finally:
|
217
|
-
step_run_metadata = self._stack.get_step_run_metadata(
|
218
|
-
info=step_run_info,
|
218
|
+
artifact_metadata_enabled = is_setting_enabled(
|
219
|
+
is_enabled_on_step=step_run_info.config.enable_artifact_metadata,
|
220
|
+
is_enabled_on_pipeline=step_run_info.pipeline.enable_artifact_metadata,
|
219
221
|
)
|
220
|
-
|
221
|
-
|
222
|
-
|
222
|
+
artifact_visualization_enabled = is_setting_enabled(
|
223
|
+
is_enabled_on_step=step_run_info.config.enable_artifact_visualization,
|
224
|
+
is_enabled_on_pipeline=step_run_info.pipeline.enable_artifact_visualization,
|
223
225
|
)
|
224
|
-
self.
|
225
|
-
|
226
|
+
output_artifacts = self._store_output_artifacts(
|
227
|
+
output_data=output_data,
|
228
|
+
output_artifact_uris=output_artifact_uris,
|
229
|
+
output_materializers=output_materializers,
|
230
|
+
output_annotations=output_annotations,
|
231
|
+
artifact_metadata_enabled=artifact_metadata_enabled,
|
232
|
+
artifact_visualization_enabled=artifact_visualization_enabled,
|
226
233
|
)
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
# Store and publish the output artifacts of the step function.
|
239
|
-
output_data = self._validate_outputs(
|
240
|
-
return_values, output_annotations
|
241
|
-
)
|
242
|
-
artifact_metadata_enabled = is_setting_enabled(
|
243
|
-
is_enabled_on_step=step_run_info.config.enable_artifact_metadata,
|
244
|
-
is_enabled_on_pipeline=step_run_info.pipeline.enable_artifact_metadata,
|
245
|
-
)
|
246
|
-
artifact_visualization_enabled = is_setting_enabled(
|
247
|
-
is_enabled_on_step=step_run_info.config.enable_artifact_visualization,
|
248
|
-
is_enabled_on_pipeline=step_run_info.pipeline.enable_artifact_visualization,
|
249
|
-
)
|
250
|
-
output_artifact_ids = self._store_output_artifacts(
|
251
|
-
output_data=output_data,
|
252
|
-
output_artifact_uris=output_artifact_uris,
|
253
|
-
output_materializers=output_materializers,
|
254
|
-
output_annotations=output_annotations,
|
255
|
-
artifact_metadata_enabled=artifact_metadata_enabled,
|
256
|
-
artifact_visualization_enabled=artifact_visualization_enabled,
|
257
|
-
)
|
258
|
-
link_step_artifacts_to_model(
|
259
|
-
artifact_version_ids=output_artifact_ids
|
260
|
-
)
|
261
|
-
_link_pipeline_run_to_model_from_artifacts(
|
262
|
-
pipeline_run_id=pipeline_run.id,
|
263
|
-
artifact_names=list(output_artifact_ids.keys()),
|
264
|
-
external_artifacts=list(
|
265
|
-
step_run.config.external_input_artifacts.values()
|
266
|
-
),
|
234
|
+
|
235
|
+
if (
|
236
|
+
model_version := step_run.model_version
|
237
|
+
or pipeline_run.model_version
|
238
|
+
):
|
239
|
+
from zenml.orchestrators import step_run_utils
|
240
|
+
|
241
|
+
step_run_utils.link_output_artifacts_to_model_version(
|
242
|
+
artifacts=output_artifacts,
|
243
|
+
output_configurations=step_run.config.outputs,
|
244
|
+
model_version=model_version,
|
267
245
|
)
|
268
|
-
|
246
|
+
|
247
|
+
StepContext._clear() # Remove the step context singleton
|
269
248
|
|
270
249
|
# Update the status and output artifacts of the step run.
|
250
|
+
output_artifact_ids = {
|
251
|
+
output_name: artifact.id
|
252
|
+
for output_name, artifact in output_artifacts.items()
|
253
|
+
}
|
271
254
|
publish_successful_step_run(
|
272
255
|
step_run_id=step_run_info.step_run_id,
|
273
256
|
output_artifact_ids=output_artifact_ids,
|
@@ -338,17 +321,7 @@ class StepRunner:
|
|
338
321
|
arg_type = annotations.get(arg, None)
|
339
322
|
arg_type = resolve_type_annotation(arg_type)
|
340
323
|
|
341
|
-
if
|
342
|
-
step_name = self.configuration.name
|
343
|
-
logger.warning(
|
344
|
-
"Passing a `StepContext` as an argument to a step function "
|
345
|
-
"is deprecated and will be removed in a future release. "
|
346
|
-
f"Please adjust your '{step_name}' step to instead import "
|
347
|
-
"the `StepContext` inside your step, as shown here: "
|
348
|
-
"https://docs.zenml.io/how-to/track-metrics-metadata/fetch-metadata-within-steps"
|
349
|
-
)
|
350
|
-
function_params[arg] = get_step_context()
|
351
|
-
elif arg in input_artifacts:
|
324
|
+
if arg in input_artifacts:
|
352
325
|
function_params[arg] = self._load_input_artifact(
|
353
326
|
input_artifacts[arg], arg_type
|
354
327
|
)
|
@@ -380,8 +353,6 @@ class StepRunner:
|
|
380
353
|
Raises:
|
381
354
|
TypeError: If hook function is passed a wrong parameter type.
|
382
355
|
"""
|
383
|
-
from zenml.steps import BaseParameters
|
384
|
-
|
385
356
|
function_params: Dict[str, Any] = {}
|
386
357
|
|
387
358
|
if args and args[0] == "self":
|
@@ -391,33 +362,13 @@ class StepRunner:
|
|
391
362
|
arg_type = annotations.get(arg, None)
|
392
363
|
arg_type = resolve_type_annotation(arg_type)
|
393
364
|
|
394
|
-
|
395
|
-
if issubclass(arg_type, BaseParameters):
|
396
|
-
step_params = arg_type.model_validate(
|
397
|
-
self.configuration.parameters[arg]
|
398
|
-
)
|
399
|
-
function_params[arg] = step_params
|
400
|
-
|
401
|
-
# Parse the step context
|
402
|
-
elif issubclass(arg_type, StepContext):
|
403
|
-
step_name = self.configuration.name
|
404
|
-
logger.warning(
|
405
|
-
"Passing a `StepContext` as an argument to a hook function "
|
406
|
-
"is deprecated and will be removed in a future release. "
|
407
|
-
f"Please adjust your '{step_name}' hook to instead import "
|
408
|
-
"the `StepContext` inside your hook, as shown here: "
|
409
|
-
"https://docs.zenml.io/how-to/track-metrics-metadata/fetch-metadata-within-steps"
|
410
|
-
)
|
411
|
-
function_params[arg] = get_step_context()
|
412
|
-
|
413
|
-
elif issubclass(arg_type, BaseException):
|
365
|
+
if issubclass(arg_type, BaseException):
|
414
366
|
function_params[arg] = step_exception
|
415
|
-
|
416
367
|
else:
|
417
368
|
# It should not be of any other type
|
418
369
|
raise TypeError(
|
419
370
|
"Hook functions can only take arguments of type "
|
420
|
-
f"`
|
371
|
+
f"`BaseException`, not {arg_type}"
|
421
372
|
)
|
422
373
|
|
423
374
|
return function_params
|
@@ -550,7 +501,7 @@ class StepRunner:
|
|
550
501
|
output_annotations: Dict[str, OutputSignature],
|
551
502
|
artifact_metadata_enabled: bool,
|
552
503
|
artifact_visualization_enabled: bool,
|
553
|
-
) -> Dict[str,
|
504
|
+
) -> Dict[str, "ArtifactVersionResponse"]:
|
554
505
|
"""Stores the output artifacts of the step.
|
555
506
|
|
556
507
|
Args:
|
@@ -568,7 +519,7 @@ class StepRunner:
|
|
568
519
|
The IDs of the published output artifacts.
|
569
520
|
"""
|
570
521
|
step_context = get_step_context()
|
571
|
-
output_artifacts: Dict[str,
|
522
|
+
output_artifacts: Dict[str, "ArtifactVersionResponse"] = {}
|
572
523
|
|
573
524
|
for output_name, return_value in output_data.items():
|
574
525
|
data_type = type(return_value)
|
@@ -642,7 +593,7 @@ class StepRunner:
|
|
642
593
|
user_metadata=user_metadata,
|
643
594
|
manual_save=False,
|
644
595
|
)
|
645
|
-
output_artifacts[output_name] = artifact
|
596
|
+
output_artifacts[output_name] = artifact
|
646
597
|
|
647
598
|
return output_artifacts
|
648
599
|
|
zenml/orchestrators/utils.py
CHANGED
@@ -15,14 +15,13 @@
|
|
15
15
|
|
16
16
|
import os
|
17
17
|
import random
|
18
|
-
from typing import TYPE_CHECKING, Any, Dict,
|
18
|
+
from typing import TYPE_CHECKING, Any, Dict, Optional, cast
|
19
19
|
from uuid import UUID
|
20
20
|
|
21
21
|
from zenml.client import Client
|
22
22
|
from zenml.config.global_config import (
|
23
23
|
GlobalConfiguration,
|
24
24
|
)
|
25
|
-
from zenml.config.source import Source
|
26
25
|
from zenml.constants import (
|
27
26
|
ENV_ZENML_ACTIVE_STACK_ID,
|
28
27
|
ENV_ZENML_ACTIVE_WORKSPACE_ID,
|
@@ -31,20 +30,12 @@ from zenml.constants import (
|
|
31
30
|
PIPELINE_API_TOKEN_EXPIRES_MINUTES,
|
32
31
|
)
|
33
32
|
from zenml.enums import StackComponentType, StoreType
|
34
|
-
from zenml.exceptions import StepContextError
|
35
33
|
from zenml.logger import get_logger
|
36
|
-
from zenml.model.utils import link_artifact_config_to_model
|
37
|
-
from zenml.models.v2.core.step_run import StepRunRequest
|
38
|
-
from zenml.new.steps.step_context import get_step_context
|
39
34
|
from zenml.stack import StackComponent
|
40
35
|
from zenml.utils.string_utils import format_name_template
|
41
36
|
|
42
37
|
if TYPE_CHECKING:
|
43
38
|
from zenml.artifact_stores.base_artifact_store import BaseArtifactStore
|
44
|
-
from zenml.artifacts.external_artifact_config import (
|
45
|
-
ExternalArtifactConfiguration,
|
46
|
-
)
|
47
|
-
from zenml.model.model import Model
|
48
39
|
from zenml.models import PipelineDeploymentResponse
|
49
40
|
|
50
41
|
|
@@ -161,154 +152,6 @@ def get_run_name(run_name_template: str) -> str:
|
|
161
152
|
return run_name
|
162
153
|
|
163
154
|
|
164
|
-
def _link_pipeline_run_to_model_from_context(
|
165
|
-
pipeline_run_id: "UUID", model: Optional["Model"] = None
|
166
|
-
) -> None:
|
167
|
-
"""Links the pipeline run to the model version using artifacts data.
|
168
|
-
|
169
|
-
Args:
|
170
|
-
pipeline_run_id: The ID of the current pipeline run.
|
171
|
-
model: Model configured in the step
|
172
|
-
"""
|
173
|
-
from zenml.models import ModelVersionPipelineRunRequest
|
174
|
-
|
175
|
-
if not model:
|
176
|
-
model_id, model_version_id = _get_model_versions_from_config()
|
177
|
-
else:
|
178
|
-
model_id, model_version_id = model.model_id, model.id
|
179
|
-
|
180
|
-
if model_id and model_version_id:
|
181
|
-
Client().zen_store.create_model_version_pipeline_run_link(
|
182
|
-
ModelVersionPipelineRunRequest(
|
183
|
-
user=Client().active_user.id,
|
184
|
-
workspace=Client().active_workspace.id,
|
185
|
-
pipeline_run=pipeline_run_id,
|
186
|
-
model=model_id,
|
187
|
-
model_version=model_version_id,
|
188
|
-
)
|
189
|
-
)
|
190
|
-
|
191
|
-
|
192
|
-
def _get_model_versions_from_config() -> Tuple[Optional[UUID], Optional[UUID]]:
|
193
|
-
"""Gets the model versions from the step model version.
|
194
|
-
|
195
|
-
Returns:
|
196
|
-
Tuple of (model_id, model_version_id).
|
197
|
-
"""
|
198
|
-
try:
|
199
|
-
mc = get_step_context().model
|
200
|
-
return mc.model_id, mc.id
|
201
|
-
except StepContextError:
|
202
|
-
return None, None
|
203
|
-
|
204
|
-
|
205
|
-
def _link_cached_artifacts_to_model(
|
206
|
-
model_from_context: Optional["Model"],
|
207
|
-
step_run: StepRunRequest,
|
208
|
-
step_source: Source,
|
209
|
-
) -> None:
|
210
|
-
"""Links the output artifacts of the cached step to the model version in Control Plane.
|
211
|
-
|
212
|
-
Args:
|
213
|
-
model_from_context: The model version of the current step.
|
214
|
-
step_run: The step to run.
|
215
|
-
step_source: The source of the step.
|
216
|
-
"""
|
217
|
-
from zenml.artifacts.artifact_config import ArtifactConfig
|
218
|
-
from zenml.steps.base_step import BaseStep
|
219
|
-
from zenml.steps.utils import parse_return_type_annotations
|
220
|
-
|
221
|
-
step_instance = BaseStep.load_from_source(step_source)
|
222
|
-
output_annotations = parse_return_type_annotations(
|
223
|
-
step_instance.entrypoint
|
224
|
-
)
|
225
|
-
for output_name_, output_id in step_run.outputs.items():
|
226
|
-
artifact_config_ = None
|
227
|
-
if output_name_ in output_annotations:
|
228
|
-
annotation = output_annotations.get(output_name_, None)
|
229
|
-
if annotation and annotation.artifact_config is not None:
|
230
|
-
artifact_config_ = annotation.artifact_config.model_copy()
|
231
|
-
# no artifact config found or artifact was produced by `save_artifact`
|
232
|
-
# inside the step body, so was never in annotations
|
233
|
-
if artifact_config_ is None:
|
234
|
-
artifact_config_ = ArtifactConfig(name=output_name_)
|
235
|
-
|
236
|
-
link_artifact_config_to_model(
|
237
|
-
artifact_config=artifact_config_,
|
238
|
-
model=model_from_context,
|
239
|
-
artifact_version_id=output_id,
|
240
|
-
)
|
241
|
-
|
242
|
-
|
243
|
-
def _link_pipeline_run_to_model_from_artifacts(
|
244
|
-
pipeline_run_id: UUID,
|
245
|
-
artifact_names: List[str],
|
246
|
-
external_artifacts: List["ExternalArtifactConfiguration"],
|
247
|
-
) -> None:
|
248
|
-
"""Links the pipeline run to the model version using artifacts data.
|
249
|
-
|
250
|
-
Args:
|
251
|
-
pipeline_run_id: The ID of the current pipeline run.
|
252
|
-
artifact_names: The name of the published output artifacts.
|
253
|
-
external_artifacts: The external artifacts of the step.
|
254
|
-
"""
|
255
|
-
from zenml.models import ModelVersionPipelineRunRequest
|
256
|
-
|
257
|
-
models = _get_model_versions_from_artifacts(artifact_names)
|
258
|
-
client = Client()
|
259
|
-
|
260
|
-
# Add models from external artifacts
|
261
|
-
for external_artifact in external_artifacts:
|
262
|
-
if external_artifact.model:
|
263
|
-
models.add(
|
264
|
-
(
|
265
|
-
external_artifact.model.model_id,
|
266
|
-
external_artifact.model.id,
|
267
|
-
)
|
268
|
-
)
|
269
|
-
|
270
|
-
for model in models:
|
271
|
-
client.zen_store.create_model_version_pipeline_run_link(
|
272
|
-
ModelVersionPipelineRunRequest(
|
273
|
-
user=client.active_user.id,
|
274
|
-
workspace=client.active_workspace.id,
|
275
|
-
pipeline_run=pipeline_run_id,
|
276
|
-
model=model[0],
|
277
|
-
model_version=model[1],
|
278
|
-
)
|
279
|
-
)
|
280
|
-
|
281
|
-
|
282
|
-
def _get_model_versions_from_artifacts(
|
283
|
-
artifact_names: List[str],
|
284
|
-
) -> Set[Tuple[UUID, UUID]]:
|
285
|
-
"""Gets the model versions from the artifacts.
|
286
|
-
|
287
|
-
Args:
|
288
|
-
artifact_names: The names of the published output artifacts.
|
289
|
-
|
290
|
-
Returns:
|
291
|
-
Set of tuples of (model_id, model_version_id).
|
292
|
-
"""
|
293
|
-
models = set()
|
294
|
-
for artifact_name in artifact_names:
|
295
|
-
artifact_config = (
|
296
|
-
get_step_context()._get_output(artifact_name).artifact_config
|
297
|
-
)
|
298
|
-
if artifact_config is not None:
|
299
|
-
if (model := artifact_config._model) is not None:
|
300
|
-
model_version_response = model._get_or_create_model_version()
|
301
|
-
models.add(
|
302
|
-
(
|
303
|
-
model_version_response.model.id,
|
304
|
-
model_version_response.id,
|
305
|
-
)
|
306
|
-
)
|
307
|
-
else:
|
308
|
-
break
|
309
|
-
return models
|
310
|
-
|
311
|
-
|
312
155
|
class register_artifact_store_filesystem:
|
313
156
|
"""Context manager for the artifact_store/filesystem_registry dependency.
|
314
157
|
|
zenml/pipelines/__init__.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) ZenML GmbH
|
1
|
+
# Copyright (c) ZenML GmbH 2023. All Rights Reserved.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -11,21 +11,8 @@
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
12
12
|
# or implied. See the License for the specific language governing
|
13
13
|
# permissions and limitations under the License.
|
14
|
-
"""A ZenML pipeline consists of tasks that execute in order and yield artifacts.
|
15
|
-
|
16
|
-
The artifacts are automatically stored within the artifact store and metadata
|
17
|
-
is tracked by ZenML. Each individual task within a pipeline is known as a
|
18
|
-
step. The standard pipelines within ZenML are designed to have easy interfaces
|
19
|
-
to add pre-decided steps, with the order also pre-decided. Other sorts of
|
20
|
-
pipelines can be created as well from scratch, building on the `BasePipeline` class.
|
21
|
-
|
22
|
-
Pipelines can be written as simple functions. They are created by using decorators appropriate to the specific use case you have. The moment it is `run`, a pipeline is compiled and passed directly to the orchestrator.
|
23
|
-
"""
|
24
|
-
|
25
|
-
|
26
|
-
from zenml.config import DockerSettings
|
27
14
|
from zenml.config.schedule import Schedule
|
28
|
-
from zenml.pipelines.base_pipeline import BasePipeline
|
29
15
|
from zenml.pipelines.pipeline_decorator import pipeline
|
16
|
+
from zenml.pipelines.pipeline_context import PipelineContext, get_pipeline_context
|
30
17
|
|
31
|
-
__all__ = ["
|
18
|
+
__all__ = ["pipeline", "Schedule", "PipelineContext", "get_pipeline_context"]
|
@@ -13,12 +13,11 @@
|
|
13
13
|
# permissions and limitations under the License.
|
14
14
|
"""Pipeline context class."""
|
15
15
|
|
16
|
-
from typing import TYPE_CHECKING
|
16
|
+
from typing import TYPE_CHECKING
|
17
17
|
|
18
18
|
from zenml.logger import get_logger
|
19
19
|
|
20
20
|
if TYPE_CHECKING:
|
21
|
-
from zenml import Model
|
22
21
|
from zenml.config.pipeline_configurations import PipelineConfiguration
|
23
22
|
|
24
23
|
logger = get_logger(__name__)
|
@@ -34,11 +33,11 @@ def get_pipeline_context() -> "PipelineContext":
|
|
34
33
|
RuntimeError: If no active pipeline is found.
|
35
34
|
RuntimeError: If inside a running step.
|
36
35
|
"""
|
37
|
-
from zenml.
|
36
|
+
from zenml.pipelines.pipeline_definition import Pipeline
|
38
37
|
|
39
38
|
if Pipeline.ACTIVE_PIPELINE is None:
|
40
39
|
try:
|
41
|
-
from zenml.
|
40
|
+
from zenml.steps.step_context import get_step_context
|
42
41
|
|
43
42
|
get_step_context()
|
44
43
|
except RuntimeError:
|
@@ -113,17 +112,3 @@ class PipelineContext:
|
|
113
112
|
self.settings = pipeline_configuration.settings
|
114
113
|
self.extra = pipeline_configuration.extra
|
115
114
|
self.model = pipeline_configuration.model
|
116
|
-
self._model_version = pipeline_configuration.model
|
117
|
-
|
118
|
-
# TODO: deprecate me
|
119
|
-
@property
|
120
|
-
def model_version(self) -> Optional["Model"]:
|
121
|
-
"""DEPRECATED, use `model` instead.
|
122
|
-
|
123
|
-
Returns:
|
124
|
-
The `Model` object associated with the current pipeline.
|
125
|
-
"""
|
126
|
-
logger.warning(
|
127
|
-
"Pipeline context `model_version` is deprecated. Please use `model` instead."
|
128
|
-
)
|
129
|
-
return self.model
|