Skip to content

Commit 827d565

Browse files
authored
Update sdk version to 1.23.0 (temporalio#278)
* Update sdk version to 1.23.0 * Fix changes from workflow info being optional
1 parent cad16b7 commit 827d565

5 files changed

Lines changed: 149 additions & 149 deletions

File tree

custom_metric/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def execute_activity(self, input: ExecuteActivityInput):
3939
unit="duration",
4040
)
4141
histogram.record(
42-
schedule_to_start, {"workflow_type": activity.info().workflow_type}
42+
schedule_to_start, {"workflow_type": activity.info().workflow_type or ""}
4343
)
4444
return await self.next.execute_activity(input)
4545

polling/test_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from temporalio import activity
55
from temporalio.exceptions import ApplicationError, ApplicationErrorCategory
66

7-
attempts = Counter[str]()
7+
attempts = Counter[str | None]()
88
ERROR_ATTEMPTS = 5
99

1010

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }]
66
requires-python = ">=3.10"
77
readme = "README.md"
88
license = "MIT"
9-
dependencies = ["temporalio>=1.22.0,<2"]
9+
dependencies = ["temporalio>=1.23.0,<2"]
1010

1111
[project.urls]
1212
Homepage = "https://github.com/temporalio/samples-python"

tests/resource_pool/workflow_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def test_resource_pool_workflow(client: Client):
2828
# Mock out the activity to count executions
2929
@activity.defn(name="use_resource")
3030
async def use_resource_mock(input: UseResourceActivityInput) -> None:
31-
workflow_id = activity.info().workflow_id
31+
workflow_id = activity.info().workflow_id or ""
3232
resource_usage[input.resource].append((workflow_id, "start"))
3333
# We need a small sleep here to bait out races
3434
await asyncio.sleep(0.05)

0 commit comments

Comments
 (0)