File tree Expand file tree Collapse file tree 3 files changed +0
-4
lines changed
Expand file tree Collapse file tree 3 files changed +0
-4
lines changed Original file line number Diff line number Diff line change 1616
1717
1818class SimpleWorkerInterceptor (Interceptor ):
19-
2019 def intercept_activity (
2120 self , next : ActivityInboundInterceptor
2221 ) -> ActivityInboundInterceptor :
2322 return CustomScheduleToStartInterceptor (next )
2423
2524
2625class CustomScheduleToStartInterceptor (ActivityInboundInterceptor ):
27-
2826 async def execute_activity (self , input : ExecuteActivityInput ):
2927
3028 schedule_to_start = (
Original file line number Diff line number Diff line change 99
1010@workflow .defn
1111class StartTwoActivitiesWorkflow :
12-
1312 @workflow .run
1413 async def run (self ):
1514 # Request two concurrent activities with only one task slot so
Original file line number Diff line number Diff line change 1212
1313
1414async def test_custom_metric_workflow (client : Client ):
15-
1615 @activity .defn (name = "print_message" )
1716 async def print_message_mock ():
1817 global activity_counter
You can’t perform that action at this time.
0 commit comments