Comments (1)
This still seems to be an issue :(
https://github.com/buildbot/buildbot/search?q=keepalive_interval
Only 3 uses of this and all are setting values, never using it.
Our worker logs look like this:
2021-02-21 22:24:15-0800 [HangCheckProtocol,client] message from master: keepalive
2021-02-21 22:24:17-0800 [-] sending app-level keepalive
2021-02-21 22:26:17-0800 [-] sending app-level keepalive
2021-02-21 22:28:17-0800 [-] sending app-level keepalive
2021-02-21 22:30:17-0800 [-] sending app-level keepalive
2021-02-21 22:32:17-0800 [-] sending app-level keepalive
2021-02-21 22:34:17-0800 [-] sending app-level keepalive
2021-02-21 22:36:17-0800 [-] sending app-level keepalive
2021-02-21 22:38:17-0800 [-] sending app-level keepalive
2021-02-21 22:40:17-0800 [-] sending app-level keepalive
2021-02-21 22:42:17-0800 [-] sending app-level keepalive
2021-02-21 22:44:17-0800 [-] sending app-level keepalive
2021-02-21 22:46:17-0800 [-] sending app-level keepalive
2021-02-21 22:48:17-0800 [-] sending app-level keepalive
2021-02-21 22:50:17-0800 [-] sending app-level keepalive
2021-02-21 22:52:17-0800 [-] sending app-level keepalive
2021-02-21 22:54:17-0800 [-] sending app-level keepalive
2021-02-21 22:56:17-0800 [-] sending app-level keepalive
2021-02-21 22:58:17-0800 [-] sending app-level keepalive
2021-02-21 23:00:17-0800 [-] sending app-level keepalive
2021-02-21 23:02:17-0800 [-] sending app-level keepalive
2021-02-21 23:04:17-0800 [-] sending app-level keepalive
2021-02-21 23:06:17-0800 [-] sending app-level keepalive
2021-02-21 23:08:17-0800 [-] sending app-level keepalive
2021-02-21 23:10:17-0800 [-] sending app-level keepalive
2021-02-21 23:12:17-0800 [-] sending app-level keepalive
2021-02-21 23:14:17-0800 [-] sending app-level keepalive
2021-02-21 23:16:17-0800 [-] sending app-level keepalive
2021-02-21 23:18:17-0800 [-] sending app-level keepalive
2021-02-21 23:20:17-0800 [-] sending app-level keepalive
2021-02-21 23:22:17-0800 [-] sending app-level keepalive
2021-02-21 23:24:14-0800 [HangCheckProtocol,client] message from master: keepalive
workers.append(worker.Worker('worker_name', 'worker_password', keepalive_interval=60, max_builds=1))
Our temporary fix:
class FSGWorker(worker.Worker):
@defer.inlineCallbacks
def attached(self, conn):
conn.keepalive_interval = 60
conn.stopKeepaliveTimer()
conn._keepalive_action_handler = \
deferwaiter.RepeatedActionHandler(conn.master.reactor, conn._keepalive_waiter,
conn.keepalive_interval, conn._do_keepalive)
conn.startKeepaliveTimer()
yield super().attached(conn)
Looks like there's 3 pieces missing:
- AbstractWorker never saves keepalive_interval.
buildbot/master/buildbot/worker/base.py
Line 65 in 5727d0e
- PB's Connection has no config override:
buildbot/master/buildbot/worker/protocols/pb.py
Lines 139 to 140 in 5727d0e
__init__
should be usingworker.keepalive_interval
if it's set.
from buildbot.
Related Issues (20)
- React UI: reverse proxy doesn't work with relative URLs (3.10, 3.9.2) HOT 1
- Remove AngularJS frontend HOT 3
- Wrong error message when buildbot uses React web frontend and it is not installed
- Unclosed socket resource warnings when running tests
- Python 3.12 deprecated os.fork, replace it with safer alternative
- .github: Set the maximum execution time for running tests
- Add integration tests to test interoperability with Buildbot workers from older Buildbot versions
- Worker waits 5 seconds to send initial logs
- Log search in web frontend should have an end to end test
- Address PEP 706 - Filter for tarfile.extractall
- buildbot.errors.PluginDBError when importing custom www plugin HOT 4
- "should create a build with a dedicated reason and stop it during execution" e2e test fails on webkit HOT 1
- "should navigate to a dedicated build and to use the rebuild button" e2e test fails on webkit HOT 2
- [react regression] New builds don't appear in `#/workers` page automatically
- Document that Windows account passwords expire in docker latent workers
- Gitpoller not working well with secret providers that strip newlines from secrets
- [react regression] Actions buttons are shown even when the user is not logged in or otherwise does not have permission
- "force and cancel › should create a build with a dedicated reason and Start it" e2e test fails on webkit HOT 2
- Consider to convert inlineCallbacks to async/await HOT 1
- buildbot-worker fails with exception in _render_renderables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildbot.