Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing parallelization? #380

Closed
icarusmiles opened this issue Aug 18, 2017 · 5 comments
Closed

Implementing parallelization? #380

icarusmiles opened this issue Aug 18, 2017 · 5 comments

Comments

@icarusmiles
Copy link

Currently I am doing Chromeless via AWS Lambda, it's very slow and if possible I'd like to do the processing my self.

Is there anyway to implement parallelization? If I try to spawn multiple browsers some may go through over time, but pretty much it times out. The reason for doing this is because the application I want relies on user input and I don't want to have a queue per-say.

Any ideas or is this something that's not possible?

@aslushnikov
Copy link
Contributor

What kind of parallelization are you interested in?

@icarusmiles
Copy link
Author

Thanks for the response @aslushnikov!

Both forms of parallelization, I got the page.newPage down.
I want an entirely new instance spawned, so if two users are using the tool/script at the same time they wont have to wait and/or it wont time out. So if I use puppeteer.connect it would hookup to an existing chrome if it's running?

@aslushnikov
Copy link
Contributor

Right, the puppeteer.connect would do that. You might also need the #85 to be implemented if you want users to be completely isolated from one another.

@icarusmiles
Copy link
Author

Wow, that's perfect. I have some work to do and I'll watch that!

@mhaseebkhan
Copy link

@miles-collier: Can you please share a sample?

I am trying to do a similar thing here for which I have created #2670, but, haven't heard anything on it.

I have a Node Express app which uses puppeteer and launches a browser window with a pre-configured URL and perform some tasks on it. Everything works great when there is juts one window opened. As soon as a second window is opened, the events of the first one are swallowed and both the browser windows are left in orphan state.

Any ideas what I should do to resolve this problem?

CC: @aslushnikov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants