wmill 1.535.0__tar.gz → 1.537.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wmill
3
- Version: 1.535.0
3
+ Version: 1.537.0
4
4
  Summary: A client library for accessing Windmill server wrapping the Windmill client API
5
5
  Home-page: https://windmill.dev
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wmill"
3
- version = "1.535.0"
3
+ version = "1.537.0"
4
4
  description = "A client library for accessing Windmill server wrapping the Windmill client API"
5
5
  license = "Apache-2.0"
6
6
  homepage = "https://windmill.dev"
@@ -1478,16 +1478,16 @@ def task(*args, **kwargs):
1478
1478
  params = {}
1479
1479
  if tag is not None:
1480
1480
  params["tag"] = tag
1481
- r = _client.post(
1481
+ w_as_code_response = _client.post(
1482
1482
  f"/w/{w_id}/jobs/run/workflow_as_code/{job_id}/{f_name}",
1483
1483
  json={"args": json},
1484
1484
  params=params,
1485
1485
  )
1486
- job_id = r.text
1486
+ job_id = w_as_code_response.text
1487
1487
  print(f"Executing task {func.__name__} on job {job_id}")
1488
- r = _client.wait_job(job_id)
1488
+ job_result = _client.wait_job(job_id)
1489
1489
  print(f"Task {func.__name__} ({job_id}) completed")
1490
- return r
1490
+ return job_result
1491
1491
 
1492
1492
  return inner
1493
1493
 
File without changes
File without changes
File without changes
File without changes
File without changes