File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
examples/integrations/temporal/src Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ export async function invalidateSession(sessionId: string): Promise<void> {
284
284
const stagehand = activeSessions . get ( sessionId ) ;
285
285
if ( stagehand ) {
286
286
try {
287
- await stagehand . page . close ( ) ;
287
+ await stagehand . close ( ) ;
288
288
} catch ( e ) {
289
289
// Ignore errors during invalidation
290
290
}
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ async function run() {
6
6
workflowsPath : require . resolve ( './workflows' ) ,
7
7
activities,
8
8
taskQueue : 'browser-automation' ,
9
- maxConcurrentActivityTaskExecutions : 2 , // Limit concurrent browser sessions
9
+ maxConcurrentActivityTaskExecutions : 2 ,
10
10
} ) ;
11
11
12
12
// Handle worker shutdown gracefully
13
13
process . on ( 'SIGINT' , async ( ) => {
14
- await worker . shutdown ( ) ;
14
+ worker . shutdown ( ) ;
15
15
process . exit ( 0 ) ;
16
16
} ) ;
17
17
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ export async function searchWithRetry(query: string): Promise<string> {
5
5
// Get workflow info to use in session ID generation
6
6
const info = workflowInfo ( ) ;
7
7
8
- // Create different retry policies for different activity types
9
-
10
8
// Quick retry for initialization - might fail due to network
11
9
const { initializeBrowser } = proxyActivities < typeof activities > ( {
12
10
retry : {
You can’t perform that action at this time.
0 commit comments