Skip to content

Commit 97fb1a4

Browse files
authored
chore: add agentservice source on job invocation (#1593)
1 parent 4b6fcbc commit 97fb1a4

6 files changed

Lines changed: 13 additions & 5 deletions

File tree

packages/uipath-platform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.1.38"
3+
version = "0.1.39"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-platform/src/uipath/platform/orchestrator/_processes_service.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,11 @@ def _invoke_spec(
321321
parent_operation_id: Optional[str] = None,
322322
run_as_me: Optional[bool] = None,
323323
) -> RequestSpec:
324-
payload: Dict[str, Any] = {"ReleaseName": name, **(input_data or {})}
324+
payload: Dict[str, Any] = {
325+
"ReleaseName": name,
326+
**(input_data or {}),
327+
"Source": "AgentService",
328+
}
325329
self._add_tracing(payload, UiPathConfig.trace_id, parent_span_id)
326330

327331
if parent_operation_id:

packages/uipath-platform/tests/services/test_processes_service.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def test_invoke(
7979
"startInfo": {
8080
"ReleaseName": process_name,
8181
"InputArguments": json.dumps(input_arguments),
82+
"Source": "AgentService",
8283
}
8384
},
8485
separators=(",", ":"),
@@ -139,6 +140,7 @@ def test_invoke_without_input_arguments(
139140
"startInfo": {
140141
"ReleaseName": process_name,
141142
"InputArguments": "{}",
143+
"Source": "AgentService",
142144
}
143145
},
144146
separators=(",", ":"),
@@ -300,6 +302,7 @@ async def test_invoke_async(
300302
"startInfo": {
301303
"ReleaseName": process_name,
302304
"InputArguments": json.dumps(input_arguments),
305+
"Source": "AgentService",
303306
}
304307
},
305308
separators=(",", ":"),
@@ -361,6 +364,7 @@ async def test_invoke_async_without_input_arguments(
361364
"startInfo": {
362365
"ReleaseName": process_name,
363366
"InputArguments": "{}",
367+
"Source": "AgentService",
364368
}
365369
},
366370
separators=(",", ":"),

packages/uipath-platform/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.11"
77
dependencies = [
88
"uipath-core>=0.5.8, <0.6.0",
99
"uipath-runtime>=0.10.1, <0.11.0",
10-
"uipath-platform>=0.1.13, <0.2.0",
10+
"uipath-platform>=0.1.39, <0.2.0",
1111
"click>=8.3.1",
1212
"httpx>=0.28.1",
1313
"pyjwt>=2.10.1",

packages/uipath/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)