-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Debug info: print all workers #1200
Conversation
@rfc2822 I've added the info for |
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.
Could we have a list of all "other" workers which are not mentioned in the account section? Reason is that there may be old workers which have not been cancelled correctly, for instance by migrations.
Maybe we can return the IDs of the workers when we dump the account workers, remember them and at the end print all other workers (= those which were not printed yet). Or something similar.
Also I think it's time to move the debug info generation into a separate class DebugInfoGenerator
, then it won't clutter the model (still UI layer) so much.
cd4315c
to
39680ee
Compare
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.
The AccountsCleanupWorker is not a "sync" worker. I would rename one or both of the dumpSyncWorkersInfo
methods to dumpWorkersInfo
.
Not sure we really need to be able to generate other tables besides "Sync workers" and the new "Generic workers" table. Having a generic generation function seems a bit overengineered to me, but I guess it might come in handy.
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
39680ee
to
e0c1a8b
Compare
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
I've done what you suggested, filtering the sync workers, and seems to work good. It's a bit more convoluted, but I think it's fine. An example of the result:
|
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.
You are right it still looks a bit inconvenient/awkward. I am wondering a whether it would be simpler to:
- Request all workInfo of all workers.
- Filter out the "sync-" workers by tag and display them
- Filter out the non "sync-" workers by tag and display them.
That would probably require workersInfoTable
to only display the workInfo data and not do the querying as well.
It shows up alright though, so I think it's not worth the hassle and this is fine, like you say. 👍
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.
I have moved out debug info generation into a separate class.
Purpose
Right now we only provide the information of the individual sync workers for each account and data type, but no information about the "generic" workers is provided.
Example:
Short description
workersInfoTable
inDebugInfoModel
which allows generating tables for workers in a more generic way.AccountsCleanupWorker
.Checklist