zenml-nightly 0.84.3.dev20250905__py3-none-any.whl → 0.84.3.dev20250908__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.
- zenml/VERSION +1 -1
- zenml/integrations/airflow/orchestrators/dag_generator.py +1 -1
- zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py +11 -2
- zenml/models/v2/core/pipeline_run.py +1 -0
- zenml/orchestrators/base_orchestrator.py +12 -1
- zenml/zen_stores/schemas/pipeline_run_schemas.py +3 -0
- zenml/zen_stores/sql_zen_store.py +21 -0
- {zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/METADATA +1 -1
- {zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/RECORD +12 -12
- {zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/entry_points.txt +0 -0
zenml/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.84.3.
|
1
|
+
0.84.3.dev20250908
|
@@ -225,7 +225,7 @@ else:
|
|
225
225
|
dag_id=dag_config.id,
|
226
226
|
is_paused_upon_creation=False,
|
227
227
|
tags=dag_config.tags,
|
228
|
-
|
228
|
+
schedule=dag_config.schedule,
|
229
229
|
start_date=dag_config.start_date,
|
230
230
|
end_date=dag_config.end_date,
|
231
231
|
catchup=dag_config.catchup,
|
@@ -57,7 +57,11 @@ from zenml.integrations.kubernetes.orchestrators.manifest_utils import (
|
|
57
57
|
)
|
58
58
|
from zenml.logger import get_logger
|
59
59
|
from zenml.logging.step_logging import setup_orchestrator_logging
|
60
|
-
from zenml.models import
|
60
|
+
from zenml.models import (
|
61
|
+
PipelineDeploymentResponse,
|
62
|
+
PipelineRunResponse,
|
63
|
+
PipelineRunUpdate,
|
64
|
+
)
|
61
65
|
from zenml.orchestrators import publish_utils
|
62
66
|
from zenml.orchestrators.step_run_utils import (
|
63
67
|
StepRunRequestFactory,
|
@@ -257,7 +261,12 @@ def main() -> None:
|
|
257
261
|
else:
|
258
262
|
orchestrator_run_id = orchestrator_pod_name
|
259
263
|
if args.run_id:
|
260
|
-
pipeline_run = client.
|
264
|
+
pipeline_run = client.zen_store.update_run(
|
265
|
+
run_id=args.run_id,
|
266
|
+
run_update=PipelineRunUpdate(
|
267
|
+
orchestrator_run_id=orchestrator_run_id
|
268
|
+
),
|
269
|
+
)
|
261
270
|
else:
|
262
271
|
pipeline_run = create_placeholder_run(
|
263
272
|
deployment=deployment,
|
@@ -144,6 +144,7 @@ class PipelineRunUpdate(BaseUpdate):
|
|
144
144
|
|
145
145
|
status: Optional[ExecutionStatus] = None
|
146
146
|
end_time: Optional[datetime] = None
|
147
|
+
orchestrator_run_id: Optional[str] = None
|
147
148
|
# TODO: we should maybe have a different update model here, the upper
|
148
149
|
# three attributes should only be for internal use
|
149
150
|
add_tags: Optional[List[str]] = Field(
|
@@ -35,7 +35,11 @@ from zenml.constants import (
|
|
35
35
|
handle_bool_env_var,
|
36
36
|
)
|
37
37
|
from zenml.enums import ExecutionStatus, StackComponentType
|
38
|
-
from zenml.exceptions import
|
38
|
+
from zenml.exceptions import (
|
39
|
+
IllegalOperationError,
|
40
|
+
RunMonitoringError,
|
41
|
+
RunStoppedException,
|
42
|
+
)
|
39
43
|
from zenml.logger import get_logger
|
40
44
|
from zenml.metadata.metadata_types import MetadataType
|
41
45
|
from zenml.orchestrators.publish_utils import (
|
@@ -485,6 +489,7 @@ class BaseOrchestrator(StackComponent, ABC):
|
|
485
489
|
Raises:
|
486
490
|
NotImplementedError: If any orchestrator inheriting from the base
|
487
491
|
class does not implement this logic.
|
492
|
+
IllegalOperationError: If the run has no orchestrator run id yet.
|
488
493
|
"""
|
489
494
|
# Check if the orchestrator supports cancellation
|
490
495
|
if (
|
@@ -496,6 +501,12 @@ class BaseOrchestrator(StackComponent, ABC):
|
|
496
501
|
"support stopping pipeline runs."
|
497
502
|
)
|
498
503
|
|
504
|
+
if not run.orchestrator_run_id:
|
505
|
+
raise IllegalOperationError(
|
506
|
+
"Cannot stop a pipeline run that has no orchestrator run id "
|
507
|
+
"yet."
|
508
|
+
)
|
509
|
+
|
499
510
|
# Update pipeline status to STOPPING before calling concrete implementation
|
500
511
|
publish_pipeline_run_status_update(
|
501
512
|
pipeline_run_id=run.id,
|
@@ -599,6 +599,9 @@ class PipelineRunSchema(NamedSchema, RunMetadataInterface, table=True):
|
|
599
599
|
self.status = run_update.status.value
|
600
600
|
self.end_time = run_update.end_time
|
601
601
|
|
602
|
+
if run_update.orchestrator_run_id:
|
603
|
+
self.orchestrator_run_id = run_update.orchestrator_run_id
|
604
|
+
|
602
605
|
self.updated = utc_now()
|
603
606
|
return self
|
604
607
|
|
@@ -6147,6 +6147,9 @@ class SqlZenStore(BaseZenStore):
|
|
6147
6147
|
Raises:
|
6148
6148
|
EntityExistsError: If a log entry with the same source already
|
6149
6149
|
exists within the scope of the same pipeline run.
|
6150
|
+
IllegalOperationError: If the orchestrator run id is being updated
|
6151
|
+
on a non-placeholder run or if the orchestrator run id is
|
6152
|
+
already set and is different from the new orchestrator run id.
|
6150
6153
|
"""
|
6151
6154
|
with Session(self.engine) as session:
|
6152
6155
|
# Check if pipeline run with the given ID exists
|
@@ -6156,6 +6159,24 @@ class SqlZenStore(BaseZenStore):
|
|
6156
6159
|
session=session,
|
6157
6160
|
)
|
6158
6161
|
|
6162
|
+
if run_update.orchestrator_run_id:
|
6163
|
+
if not existing_run.is_placeholder_run():
|
6164
|
+
raise IllegalOperationError(
|
6165
|
+
"Cannot update the orchestrator run id of a pipeline "
|
6166
|
+
"run that is not a placeholder run."
|
6167
|
+
)
|
6168
|
+
|
6169
|
+
if (
|
6170
|
+
existing_run.orchestrator_run_id
|
6171
|
+
and existing_run.orchestrator_run_id
|
6172
|
+
!= run_update.orchestrator_run_id
|
6173
|
+
):
|
6174
|
+
raise IllegalOperationError(
|
6175
|
+
"Pipeline run already has a different orchestrator run "
|
6176
|
+
f"id. Existing: {existing_run.orchestrator_run_id}, "
|
6177
|
+
f"New: {run_update.orchestrator_run_id}"
|
6178
|
+
)
|
6179
|
+
|
6159
6180
|
existing_run.update(run_update=run_update)
|
6160
6181
|
session.add(existing_run)
|
6161
6182
|
session.commit()
|
{zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/RECORD
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
zenml/README.md,sha256=827dekbOWAs1BpW7VF1a4d7EbwPbjwccX-2zdXBENZo,1777
|
2
|
-
zenml/VERSION,sha256=
|
2
|
+
zenml/VERSION,sha256=T2W9F2GGgOirAKmIWlFNMQfMWCwMO8xVSezEeiVAFVM,19
|
3
3
|
zenml/__init__.py,sha256=r7JUg2SVDf_dPhS7iU6vudKusEqK4ics7_jFMZhq0o4,2731
|
4
4
|
zenml/actions/__init__.py,sha256=mrt6wPo73iKRxK754_NqsGyJ3buW7RnVeIGXr1xEw8Y,681
|
5
5
|
zenml/actions/base_action.py,sha256=UcaHev6BTuLDwuswnyaPjdA8AgUqB5xPZ-lRtuvf2FU,25553
|
@@ -130,7 +130,7 @@ zenml/integrations/airflow/flavors/__init__.py,sha256=Y48mn5OxERPPaXDBd5CFAIn6yh
|
|
130
130
|
zenml/integrations/airflow/flavors/airflow_orchestrator_flavor.py,sha256=VfZQD2H-WwIgVD1Fi7uewdnkvRoSykY0YCfROFDadXg,6189
|
131
131
|
zenml/integrations/airflow/orchestrators/__init__.py,sha256=UPly5wqlFdzLSiCeEtIExRXjTNdO0ys2tHSEbEv1Dks,845
|
132
132
|
zenml/integrations/airflow/orchestrators/airflow_orchestrator.py,sha256=2o1aJlUPjDH-jI1Sfwha0-rW0FYaTyU2E7wEh9OTel4,15944
|
133
|
-
zenml/integrations/airflow/orchestrators/dag_generator.py,sha256=
|
133
|
+
zenml/integrations/airflow/orchestrators/dag_generator.py,sha256=ewRPwB2yl-a25JrbPGxeu2yCUoOZRiDCtfq_AfEuqJs,7336
|
134
134
|
zenml/integrations/argilla/__init__.py,sha256=LmGOS77UN3jODugqrqXR_6oAg1JC6HN8srY1VgmfpgM,1415
|
135
135
|
zenml/integrations/argilla/annotators/__init__.py,sha256=QjRMxIQ-skulcLN94GuHuukrmZH27e8lke_tXUp8MOg,798
|
136
136
|
zenml/integrations/argilla/annotators/argilla_annotator.py,sha256=aIA5rcwfOYLnUVp2c_aaTAUnVW8GV9gP8myze_jY_qY,15586
|
@@ -342,7 +342,7 @@ zenml/integrations/kubernetes/orchestrators/__init__.py,sha256=TJID3OTieZBox36Wp
|
|
342
342
|
zenml/integrations/kubernetes/orchestrators/dag_runner.py,sha256=IDumuhi9hySiTZ7oTI6hz5RlJ4kiuv3NpVYgA_pLS_Y,12044
|
343
343
|
zenml/integrations/kubernetes/orchestrators/kube_utils.py,sha256=XXBs-iE77X0J6K-uRQxXK-iir4IY-Uz3p1b82iQlJ9k,37335
|
344
344
|
zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py,sha256=TnrKa6xnrYtAq1elyob0aRy-aTLrSjLuuOzdLSs_GFs,36811
|
345
|
-
zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py,sha256=
|
345
|
+
zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint.py,sha256=bDZammsOjls-81jaLjC5J0JJy_49eQ0MxXgqCAnVHaY,24992
|
346
346
|
zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator_entrypoint_configuration.py,sha256=QOwQnWCfB-t_BQ2eOZN0SakurGUd0GTMCSdUlREhk6I,2324
|
347
347
|
zenml/integrations/kubernetes/orchestrators/manifest_utils.py,sha256=JskjDSbR3HdTxGT3NOVi0ha7Ku3CqMkPzMJJq4IZYp0,14491
|
348
348
|
zenml/integrations/kubernetes/pod_settings.py,sha256=s6I0sALXB7PnRqJ-nlU71o3cTm2GM1TfqsE44qhiDJY,8022
|
@@ -652,7 +652,7 @@ zenml/models/v2/core/model_version_pipeline_run.py,sha256=JbPZZEQvOK9I32htkWdAON
|
|
652
652
|
zenml/models/v2/core/pipeline.py,sha256=OXArih3YodMAZBS_GzuLL6VPpFv3c59EthwDfDZiNGk,12044
|
653
653
|
zenml/models/v2/core/pipeline_build.py,sha256=z0LCc8aR8AdNFLLtzaAP0U0ffv7WpmSx9nNAyI__e14,17008
|
654
654
|
zenml/models/v2/core/pipeline_deployment.py,sha256=nrJHrweNlwFsIdExINMF7jwhjOwBpOd8iwtEyAnvlz4,11971
|
655
|
-
zenml/models/v2/core/pipeline_run.py,sha256=
|
655
|
+
zenml/models/v2/core/pipeline_run.py,sha256=LJRNc2tR42SWiyyN5njcdAh-O5RJo8ihboW-ATfEGS0,31062
|
656
656
|
zenml/models/v2/core/project.py,sha256=fNNO8Tg5OhSzmFf2t6g4SpUzGWC96oHhUccVyWytvIE,5627
|
657
657
|
zenml/models/v2/core/run_metadata.py,sha256=hRGQa_sk99uDSab3EyyOQhefypVpiQDCH3oAtblREDk,2432
|
658
658
|
zenml/models/v2/core/run_template.py,sha256=6jdH1son7kpvFv-vtaOL2nXMATtVpqk_7a2xOVv_7cc,14097
|
@@ -686,7 +686,7 @@ zenml/models/v2/misc/statistics.py,sha256=ajce9rHC2bBylLzOmLfcOBSbTnJD67Y8n5YKCY
|
|
686
686
|
zenml/models/v2/misc/tag.py,sha256=jUoz7wqMpDFlIUmvj4PVq8NYJJB7TMCcdRfW-DAABCU,974
|
687
687
|
zenml/models/v2/misc/user_auth.py,sha256=1-yafNA9qK4wL8ToROjaklTVI7Mj9va0t80_4wm7w3U,6988
|
688
688
|
zenml/orchestrators/__init__.py,sha256=Nhmc6U-q6c8TEH1Jb5l8XaKnc4KmLNspDpvvV5TcvzQ,2007
|
689
|
-
zenml/orchestrators/base_orchestrator.py,sha256
|
689
|
+
zenml/orchestrators/base_orchestrator.py,sha256=-WbVagJ8PEs0-RVAa_mSFFUQqn0L4npjwBwN16LQ_5Y,21760
|
690
690
|
zenml/orchestrators/cache_utils.py,sha256=PLZwNZREx3W4ZgRUahuIbfeTdR08uNWcwuDeoxzANac,6537
|
691
691
|
zenml/orchestrators/containerized_orchestrator.py,sha256=-umxlNlQfezks1GLoi0SyXtXXo9dkC4Re9nA0fh_avw,3858
|
692
692
|
zenml/orchestrators/dag_runner.py,sha256=6pDloHKuGvOTaABJ8G8OJ94f_8uPfeN-M0Nc5sFjHwA,10708
|
@@ -1329,7 +1329,7 @@ zenml/zen_stores/schemas/logs_schemas.py,sha256=la8ipJeTZ920ubHn8Uqf1DJLR7xHEXKK
|
|
1329
1329
|
zenml/zen_stores/schemas/model_schemas.py,sha256=cDhWggrn3rTjaFML3iQGuW_4CpUJUxAnHieiY-dq0y4,26006
|
1330
1330
|
zenml/zen_stores/schemas/pipeline_build_schemas.py,sha256=8GMdJNNcoSnbYH9daVr8zrhwQ1n-HZrpgzHoBZ7DZyA,7320
|
1331
1331
|
zenml/zen_stores/schemas/pipeline_deployment_schemas.py,sha256=ZJ5K_rzVhe7rvE6kRdmYhRn4E2DcZxxMUPgAImeLN2s,15423
|
1332
|
-
zenml/zen_stores/schemas/pipeline_run_schemas.py,sha256=
|
1332
|
+
zenml/zen_stores/schemas/pipeline_run_schemas.py,sha256=yTXvL72X_v2ymJxcP1lAF0x0BkxSvvG9Oja6qI-RJqg,24254
|
1333
1333
|
zenml/zen_stores/schemas/pipeline_schemas.py,sha256=xgioTeBuFFFDOJi5eESx2j-8mW55B6hshosFylev5Mw,8213
|
1334
1334
|
zenml/zen_stores/schemas/project_schemas.py,sha256=X2GClPNQz0COsEZX8xI-I8Sm68Hb6f20Obm24mQyLS0,6013
|
1335
1335
|
zenml/zen_stores/schemas/run_metadata_schemas.py,sha256=G94rT4ldluMSnf9rm7R_9rw_GlgaAyq72ptkHl0gHeg,3605
|
@@ -1355,11 +1355,11 @@ zenml/zen_stores/secrets_stores/hashicorp_secrets_store.py,sha256=5err1a-TrV3SR5
|
|
1355
1355
|
zenml/zen_stores/secrets_stores/secrets_store_interface.py,sha256=Q2Jbnt2Pp7NGlR-u1YBfRZV2g8su2Fd0ArBMdksAE-Q,2819
|
1356
1356
|
zenml/zen_stores/secrets_stores/service_connector_secrets_store.py,sha256=DrXGMkBxQIy2n_kkux5Xh2OM3Ks3MOpqP1D4aY8bfyY,7047
|
1357
1357
|
zenml/zen_stores/secrets_stores/sql_secrets_store.py,sha256=LPFW757WCJLP1S8vrvjsrl2Tf1yo281xUTjSBsos4qk,8788
|
1358
|
-
zenml/zen_stores/sql_zen_store.py,sha256=
|
1358
|
+
zenml/zen_stores/sql_zen_store.py,sha256=T40n0lPnai6UW16FZM7neBEjgcfz0VRnnkb20SKivDw,493073
|
1359
1359
|
zenml/zen_stores/template_utils.py,sha256=iCXrXpqzVTY7roqop4Eh9J7DmLW6PQeILZexmw_l3b8,10074
|
1360
1360
|
zenml/zen_stores/zen_store_interface.py,sha256=weiSULdI9AsbCE10a5TcwtybX-BJs9hKhjPJnTapWv4,93023
|
1361
|
-
zenml_nightly-0.84.3.
|
1362
|
-
zenml_nightly-0.84.3.
|
1363
|
-
zenml_nightly-0.84.3.
|
1364
|
-
zenml_nightly-0.84.3.
|
1365
|
-
zenml_nightly-0.84.3.
|
1361
|
+
zenml_nightly-0.84.3.dev20250908.dist-info/LICENSE,sha256=wbnfEnXnafPbqwANHkV6LUsPKOtdpsd-SNw37rogLtc,11359
|
1362
|
+
zenml_nightly-0.84.3.dev20250908.dist-info/METADATA,sha256=fcKRyecU6fvfdQGZh9_WiM07pATW80GkSV66doZnVQo,25252
|
1363
|
+
zenml_nightly-0.84.3.dev20250908.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
1364
|
+
zenml_nightly-0.84.3.dev20250908.dist-info/entry_points.txt,sha256=QK3ETQE0YswAM2mWypNMOv8TLtr7EjnqAFq1br_jEFE,43
|
1365
|
+
zenml_nightly-0.84.3.dev20250908.dist-info/RECORD,,
|
{zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/LICENSE
RENAMED
File without changes
|
{zenml_nightly-0.84.3.dev20250905.dist-info → zenml_nightly-0.84.3.dev20250908.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|