wmill 1.296.1__tar.gz → 1.297.0__tar.gz
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.
Potentially problematic release.
This version of wmill might be problematic. Click here for more details.
- {wmill-1.296.1 → wmill-1.297.0}/PKG-INFO +1 -1
- {wmill-1.296.1 → wmill-1.297.0}/pyproject.toml +1 -1
- {wmill-1.296.1 → wmill-1.297.0}/wmill/client.py +2 -2
- {wmill-1.296.1 → wmill-1.297.0}/README.md +0 -0
- {wmill-1.296.1 → wmill-1.297.0}/wmill/__init__.py +0 -0
- {wmill-1.296.1 → wmill-1.297.0}/wmill/py.typed +0 -0
- {wmill-1.296.1 → wmill-1.297.0}/wmill/s3_reader.py +0 -0
- {wmill-1.296.1 → wmill-1.297.0}/wmill/s3_types.py +0 -0
|
@@ -349,7 +349,7 @@ class Windmill:
|
|
|
349
349
|
def set_flow_user_state(self, key: str, value: Any) -> None:
|
|
350
350
|
"""Set the user state of a flow at a given key"""
|
|
351
351
|
flow_id = self.get_root_job_id()
|
|
352
|
-
r =
|
|
352
|
+
r = self.post(f"/w/{self.workspace}/jobs/flow/user_states/{flow_id}/{key}", json=value, raise_for_status=False)
|
|
353
353
|
if r.status_code == 404:
|
|
354
354
|
print(f"Job {flow_id} does not exist or is not a flow")
|
|
355
355
|
|
|
@@ -357,7 +357,7 @@ class Windmill:
|
|
|
357
357
|
def get_flow_user_state(self, key: str) -> Any:
|
|
358
358
|
"""Get the user state of a flow at a given key"""
|
|
359
359
|
flow_id = self.get_root_job_id()
|
|
360
|
-
r =
|
|
360
|
+
r = self.get(f"/w/{self.workspace}/jobs/flow/user_states/{flow_id}/{key}", raise_for_status=False)
|
|
361
361
|
if r.status_code == 404:
|
|
362
362
|
print(f"Job {flow_id} does not exist or is not a flow")
|
|
363
363
|
return None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|