Skip to content

Commit 1f15552

Browse files
committed
DEV
1 parent 8cf4712 commit 1f15552

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

β€Žtests/helpers/worker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class KSExecuteActivityAction:
9292
class KitchenSinkWorkflow:
9393
@workflow.run
9494
async def run(self, params: KSWorkflowParams) -> Any:
95+
print("🌈 in workflow")
9596
# Handle all initial actions
9697
for action in params.actions or []:
9798
should_return, ret = await self.handle_action(params, action)
@@ -111,6 +112,7 @@ async def run(self, params: KSWorkflowParams) -> Any:
111112
async def handle_action(
112113
self, params: KSWorkflowParams, action: KSAction
113114
) -> Tuple[bool, Any]:
115+
print("🌈 in handle_action")
114116
if action.result:
115117
if action.result.run_id:
116118
return (True, workflow.info().run_id)

β€Žtests/worker/test_activity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656

5757

5858
async def test_activity_hello(client: Client, worker: ExternalWorker):
59+
print("🌈")
5960
@activity.defn
6061
async def say_hello(name: str) -> str:
62+
print("🌈 in activity")
6163
return f"Hello, {name}!"
6264

6365
result = await _execute_workflow_with_activity(
@@ -1309,6 +1311,7 @@ async def _execute_workflow_with_activity(
13091311
worker_config["max_concurrent_activities"] = default_max_concurrent_activities
13101312
async with Worker(**worker_config):
13111313
try:
1314+
print("🌈 in client")
13121315
handle = await client.start_workflow(
13131316
"kitchen_sink",
13141317
KSWorkflowParams(

0 commit comments

Comments
Β (0)