mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
increase browser start and stop timeouts, since sometimes we strand browser processes after starting them, when the machine is very busy
This commit is contained in:
parent
ffd60d35e6
commit
e9c2fc61dd
@ -231,7 +231,7 @@ class Chrome:
|
||||
|
||||
# returns websocket url to chrome window with about:blank loaded
|
||||
def start(self):
|
||||
timeout_sec = 60
|
||||
timeout_sec = 600
|
||||
new_env = os.environ.copy()
|
||||
new_env["HOME"] = self.user_home_dir
|
||||
chrome_args = [self.executable,
|
||||
@ -270,7 +270,7 @@ class Chrome:
|
||||
time.sleep(0.5)
|
||||
|
||||
def stop(self):
|
||||
timeout_sec = 60
|
||||
timeout_sec = 300
|
||||
self.logger.info("terminating chrome pid {}".format(self.chrome_process.pid))
|
||||
|
||||
self.chrome_process.terminate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user