超时自动重启 Selenium 网格

发布于 2024-08-15 19:08:29 字数 227 浏览 2 评论 0原文

有没有办法在超时时自动重新启动 Selenium 网格?当我们的构建环境中的一个远程控制在页面上超时时,整个 Selenium 系统必须重新启动。我必须重新启动 Selenium 网格集线器,然后转到每个远程控制并分别重新启动它。似乎应该有一种方法可以将远程控制上的超时作为通知发送到网格集线器,并且可以重新启动。然后,在每个遥控器上,如果它们不再与集线器通信,则可以尝试自行重新启动。 我是否只需等待 Grid hub 1.0.5 即可?

Is there a way to automatically restart Selenium grid on a timeout? When one of the Remote Controls in our build environment times out on a page, the whole Selenium system has to restart. I have to restart the Selenium grid hub and then go to each remote control and restart it separately. Seems like there should be a way that a timeout on a remote control can be sent as a notification to the grid hub and it could restart. Then on each remote control, if they were no longer in communication with the hub, they could try restarting themselves.
Do I just have to wait for Grid hub 1.0.5?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故人如初 2024-08-22 19:08:29

Selenium Grid 1.0.5 有一个集成的看门狗,可以重新启动超时的工作程序。同样,即使集线器重新启动,工作人员也会向集线器重新注册自己。所以,这应该可以解决你的大部分问题。

Selenium Grid 1.0.5 has an integrated watchdog that restarts workers that time out. Likewise, the workers will re-register themselves with the hub, even if the hub is restarted. So, that should take care of the bulk of your problems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文