File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ class KSExecuteActivityAction:
92
92
class KitchenSinkWorkflow :
93
93
@workflow .run
94
94
async def run (self , params : KSWorkflowParams ) -> Any :
95
+ print ("π in workflow" )
95
96
# Handle all initial actions
96
97
for action in params .actions or []:
97
98
should_return , ret = await self .handle_action (params , action )
@@ -111,6 +112,7 @@ async def run(self, params: KSWorkflowParams) -> Any:
111
112
async def handle_action (
112
113
self , params : KSWorkflowParams , action : KSAction
113
114
) -> Tuple [bool , Any ]:
115
+ print ("π in handle_action" )
114
116
if action .result :
115
117
if action .result .run_id :
116
118
return (True , workflow .info ().run_id )
Original file line number Diff line number Diff line change 56
56
57
57
58
58
async def test_activity_hello (client : Client , worker : ExternalWorker ):
59
+ print ("π" )
59
60
@activity .defn
60
61
async def say_hello (name : str ) -> str :
62
+ print ("π in activity" )
61
63
return f"Hello, { name } !"
62
64
63
65
result = await _execute_workflow_with_activity (
@@ -1309,6 +1311,7 @@ async def _execute_workflow_with_activity(
1309
1311
worker_config ["max_concurrent_activities" ] = default_max_concurrent_activities
1310
1312
async with Worker (** worker_config ):
1311
1313
try :
1314
+ print ("π in client" )
1312
1315
handle = await client .start_workflow (
1313
1316
"kitchen_sink" ,
1314
1317
KSWorkflowParams (
You canβt perform that action at this time.
0 commit comments