wmill 1.600.0__py3-none-any.whl → 1.602.0__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.
wmill/client.py
CHANGED
|
@@ -707,13 +707,25 @@ class Windmill:
|
|
|
707
707
|
params=params if params else None,
|
|
708
708
|
).json()
|
|
709
709
|
|
|
710
|
-
def set_state(self, value: Any):
|
|
710
|
+
def set_state(self, value: Any, path: str | None = None) -> None:
|
|
711
711
|
"""Set the workflow state.
|
|
712
712
|
|
|
713
713
|
Args:
|
|
714
714
|
value: State value to set
|
|
715
|
+
path: Optional state resource path override.
|
|
715
716
|
"""
|
|
716
|
-
self.set_resource(value, path=self.state_path, resource_type="state")
|
|
717
|
+
self.set_resource(value, path=path or self.state_path, resource_type="state")
|
|
718
|
+
|
|
719
|
+
def get_state(self, path: str | None = None) -> Any:
|
|
720
|
+
"""Get the workflow state.
|
|
721
|
+
|
|
722
|
+
Args:
|
|
723
|
+
path: Optional state resource path override.
|
|
724
|
+
|
|
725
|
+
Returns:
|
|
726
|
+
State value or None if not set
|
|
727
|
+
"""
|
|
728
|
+
return self.get_resource(path=path or self.state_path, none_if_undefined=True)
|
|
717
729
|
|
|
718
730
|
def set_progress(self, value: int, job_id: Optional[str] = None):
|
|
719
731
|
"""Set job progress percentage (0-99).
|
|
@@ -1725,12 +1737,11 @@ def whoami() -> dict:
|
|
|
1725
1737
|
|
|
1726
1738
|
|
|
1727
1739
|
@init_global_client
|
|
1728
|
-
|
|
1729
|
-
def get_state() -> Any:
|
|
1740
|
+
def get_state(path: str | None = None) -> Any:
|
|
1730
1741
|
"""
|
|
1731
1742
|
Get the state
|
|
1732
1743
|
"""
|
|
1733
|
-
return _client.
|
|
1744
|
+
return _client.get_state(path=path)
|
|
1734
1745
|
|
|
1735
1746
|
|
|
1736
1747
|
@init_global_client
|
|
@@ -1781,11 +1792,11 @@ def list_resources(
|
|
|
1781
1792
|
|
|
1782
1793
|
|
|
1783
1794
|
@init_global_client
|
|
1784
|
-
def set_state(value: Any) -> None:
|
|
1795
|
+
def set_state(value: Any, path: str | None = None) -> None:
|
|
1785
1796
|
"""
|
|
1786
1797
|
Set the state
|
|
1787
1798
|
"""
|
|
1788
|
-
return _client.set_state(value)
|
|
1799
|
+
return _client.set_state(value, path=path)
|
|
1789
1800
|
|
|
1790
1801
|
|
|
1791
1802
|
@init_global_client
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
wmill/__init__.py,sha256=nGZnQPezTdrBnBW1D0JqUtm75Gdf_xi3tAcPGwHRZ5A,46
|
|
2
|
-
wmill/client.py,sha256=
|
|
2
|
+
wmill/client.py,sha256=cj_rEgyCKdjfWQcFk9XWqccD-zpwV4CMsMyAy4Wi9XE,73240
|
|
3
3
|
wmill/py.typed,sha256=8PjyZ1aVoQpRVvt71muvuq5qE-jTFZkK-GLHkhdebmc,26
|
|
4
4
|
wmill/s3_reader.py,sha256=ySd1R2F9krbyhFU_-ogGDZAWQsF2CkPgq7K7xCEvhDU,2662
|
|
5
5
|
wmill/s3_types.py,sha256=gQZRdQoDRp7IRS9MTgGAiHZr1MIdtrbWeN-NJ28kIkA,1804
|
|
6
|
-
wmill-1.
|
|
7
|
-
wmill-1.
|
|
8
|
-
wmill-1.
|
|
6
|
+
wmill-1.602.0.dist-info/METADATA,sha256=f1wbGLTcd9z2ThaR5SX1jqMO8TMLyXGcudL1P4WiLtQ,2693
|
|
7
|
+
wmill-1.602.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
8
|
+
wmill-1.602.0.dist-info/RECORD,,
|
|
File without changes
|