Skip to content

Commit

Permalink
fix: max fly time 2 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
pgagnidze committed Dec 22, 2023
1 parent 980f643 commit 7c5ef4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bird/owl.ts
Expand Up @@ -39,6 +39,7 @@ export const owl = async ({
speed = "slow",
logger = localLogger,
variables = {},
maxFlyTime = 120 * 1000, // 2 minutes
chromium,
}: {
puppeteer: PuppeteerNode | PuppeteerExtra | any;
Expand All @@ -59,6 +60,7 @@ export const owl = async ({
birdCredits?: { [x: string]: number }
) => any;
variables?: {};
maxFlyTime?: number;
chromium?: {
executablePath: (input?: string) => Promise<string>;
args: string[];
Expand Down Expand Up @@ -202,7 +204,6 @@ export const owl = async ({
}

recaptcha.onPageCreated(page as any);
const maxFlyTime = 300 * 1000; // 5 minutes
const flyResults = await asyncCallWithTimeout(fly({
page,
auth,
Expand Down

0 comments on commit 7c5ef4b

Please sign in to comment.