-
Couldn't load subscription status.
- Fork 29
Improve “Worker missing” notifications #8998
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
base: master
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughReplaces in-memory per-worker dead tracking with a TemporaryStore-backed persistent store, adds a configurable re-report interval, updates WorkerLivenessService constructor and message formatting with a heartbeat formatter, and adds a new Jobs setting in WkConf plus its value in application.conf. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)app/models/job/Worker.scala (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
app/models/job/Worker.scala(3 hunks)app/utils/WkConf.scala(1 hunks)conf/application.conf(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
app/utils/WkConf.scala (1)
util/src/main/scala/com/scalableminds/util/tools/ConfigReader.scala (1)
get(23-26)
app/models/job/Worker.scala (5)
webknossos-datastore/app/com/scalableminds/webknossos/datastore/storage/TemporaryStore.scala (4)
TemporaryStore(9-83)contains(18-23)insert(55-60)remove(69-74)app/utils/WkConf.scala (1)
Jobs(224-228)webknossos-datastore/app/com/scalableminds/webknossos/datastore/slacknotification/SlackClient.scala (3)
warn(18-21)success(24-27)info(21-24)util/src/main/scala/com/scalableminds/util/mvc/Formatter.scala (1)
formatDuration(30-82)util/src/main/scala/com/scalableminds/util/time/Instant.scala (3)
Instant(14-45)Instant(47-103)since(68-68)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: backend-tests
Worker missing notifications now
Steps to test:
(I already tested locally)
yarn enable-jobsbut do not start a worker