Skip to content

Commit 97a2b7a

Browse files
authored
Worker code cleanup (temporalio#692)
1 parent 042e088 commit 97a2b7a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

temporalio/worker/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,13 @@
9191
"ResourceBasedSlotSupplier",
9292
"ResourceBasedTunerConfig",
9393
"ResourceBasedSlotConfig",
94+
"ActivitySlotInfo",
95+
"CustomSlotSupplier",
96+
"LocalActivitySlotInfo",
97+
"SlotInfo",
98+
"SlotMarkUsedContext",
99+
"SlotPermit",
100+
"SlotReleaseContext",
101+
"SlotReserveContext",
102+
"WorkflowSlotInfo",
94103
]

tests/worker/test_worker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import asyncio
44
import concurrent.futures
5-
import threading
65
import uuid
76
from datetime import timedelta
87
from typing import Any, Awaitable, Callable, Optional
@@ -30,7 +29,7 @@
3029
WorkflowSlotInfo,
3130
)
3231
from temporalio.workflow import VersioningIntent
33-
from tests.helpers import assert_eq_eventually, new_worker, worker_versioning_enabled
32+
from tests.helpers import new_worker, worker_versioning_enabled
3433

3534

3635
def test_load_default_worker_binary_id():

0 commit comments

Comments
 (0)