Skip to content

Commit 666d4f9

Browse files
committed
cleanup
1 parent 28e6262 commit 666d4f9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/integrations/temporal/src/research-activities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export async function invalidateSession(sessionId: string): Promise<void> {
284284
const stagehand = activeSessions.get(sessionId);
285285
if (stagehand) {
286286
try {
287-
await stagehand.page.close();
287+
await stagehand.close();
288288
} catch (e) {
289289
// Ignore errors during invalidation
290290
}

examples/integrations/temporal/src/research-worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ async function run() {
66
workflowsPath: require.resolve('./workflows'),
77
activities,
88
taskQueue: 'browser-automation',
9-
maxConcurrentActivityTaskExecutions: 2, // Limit concurrent browser sessions
9+
maxConcurrentActivityTaskExecutions: 2,
1010
});
1111

1212
// Handle worker shutdown gracefully
1313
process.on('SIGINT', async () => {
14-
await worker.shutdown();
14+
worker.shutdown();
1515
process.exit(0);
1616
});
1717

examples/integrations/temporal/src/workflows.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ export async function searchWithRetry(query: string): Promise<string> {
55
// Get workflow info to use in session ID generation
66
const info = workflowInfo();
77

8-
// Create different retry policies for different activity types
9-
108
// Quick retry for initialization - might fail due to network
119
const { initializeBrowser } = proxyActivities<typeof activities>({
1210
retry: {

0 commit comments

Comments
 (0)