Parallel execution and session-timeout 4.8.0

151 views
Skip to first unread message

Mirko Boruc

unread,
Mar 21, 2023, 11:12:31 AM3/21/23
to Selenium Users
Hi, I have a problem with setting up session timeout on my selenium grid.
I have many tests executed in parallel and struggling with session timeout.

Previously I had selenium 3.14 setup and it worked fine.

Here's my toml config file:

[sessionqueue]
session-request-timeout = 900
log-level = Finest
port = 5559
session-timeout = 10

[distributor]
session-timeout = 10
publish-events = "tcp://localhost:4442"
subscribe-events = "tcp://localhost:4443"
port = 5553
bind-bus = false
log-level = Finest

[node]
detect-drivers = true
max-sessions = 4
session-timeout = 10
override-max-sessions = true
publish-events = "tcp://localhost:4442"
subscribe-events = "tcp://localhost:4443"
log-level = Finest

[hub]
port = 4444
session-timeout = 10

[sessions]
session-timeout = 10
publish-events = "tcp://localhost:4442"
subscribe-events = "tcp://localhost:4443"
port = 5556
log-level = Finest

[event-bus]
session-timeout = 10
publish-events = "tcp://localhost:4442"
subscribe-events = "tcp://localhost:4443"
port = 5557
log-level = Finest

[router]
session-timeout = 10
sessions = "http://localhost:5556"
distributor = "http://localhost:5553"
sessionqueue = "http://localhost:5559"
port = 4444
log-level = Finest

I intentionally set session-timeout wherever possible in order to get any different message than:

OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:4444/wd/hub/session timed out after 240 seconds.

Should I configure it differently? As far as I can see in the documentation session-timeout is a parameter o Node. Why it doesn't work?

Reply all
Reply to author
Forward
0 new messages