-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Show number of unread worker messages in UI #2013
Conversation
Conflicts: luigi/static/visualiser/js/visualiserApp.js
…r_worker_communication # Conflicts: # luigi/static/visualiser/index.html
hm 13 commits for 10 lines of code? :) |
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.
Yea. This is what I wanted. Although tests wouldn't have hurt. :)
luigi/scheduler.py
Outdated
@@ -1328,6 +1328,7 @@ def worker_list(self, include_running=True, **kwargs): | |||
started=worker.started, | |||
state=worker.state, | |||
first_task_display_name=self._first_task_display_name(worker), | |||
unread_messages=len(worker.rpc_messages), |
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.
Call this num_unread_messages
? Or even better, num_unread_rpc_messages
. Would be nice if a grep-search for rpc_messages
turned out all relevant bits of code for the RPC messages.
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.
Yep, sounds good. Done.
luigi/static/visualiser/index.html
Outdated
#workerList .box-tools > span.label-unread-worker-messages { | ||
margin-right: 6px; | ||
font-style: italic; | ||
vertical-align: middle; |
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.
What color do you have it in? I was thinking of maybe making it red, as it's something that under normal conditions quickly disappears.
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.
Also done ;)
This PR adds a feature as proposed in #1993.
In the UI, the number of unread messages per worker is shown near the top right tool box.
Changes are quite trivial and should require any additional tests =)