Author Topic: Add column in [Projects] tabs : "an app_config is active"  (Read 249 times)

0 Members and 1 Guest are viewing this topic.

Offline ElGuillermo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Add column in [Projects] tabs : "an app_config is active"
« on: April 19, 2022, 09:15:37 am »
Hi !

I use BoincTasks since years, managing ~10 machines, some distant, some in LAN.
As I frequently change the projects I'm working on, I have to do some finetuning for specific machines/projects, using app_config.xml and cc_config.xml a lot.

Sometimes, as I return to a project or machine that I didn't work on for a long time, I forget there is an app_config.xml or a cc_config.xml active on it.

Would it be possible for BoincTasks to display a new "Local config" column on the [Projects] screen, saying either "app_config", "cc_config" or "none/blank" is active ?
It would permit to eventually know the reason why a machine/project which hasn't been launched for a long time isn't working as intended on default settings.

Thanks !
(and thanks for BoincTasks and Tthrottle : I do not even know how I would do without these cool tools)

Offline fred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3664
  • eFMer
    • View Profile
    • Trails
Re: Add column in [Projects] tabs : "an app_config is active"
« Reply #1 on: April 28, 2022, 11:06:15 pm »
Sometimes, as I return to a project or machine that I didn't work on for a long time, I forget there is an app_config.xml or a cc_config.xml active on it.
I added it to the list, let's see if that's possible and not too time consuming.

Offline ElGuillermo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Add column in [Projects] tabs : "an app_config is active"
« Reply #2 on: April 28, 2022, 11:59:04 pm »
Thanks !

Though I do not have any idea of your actual code, as Boinc client reports the presence of app_config.xml files in projects folders, that should be as simple as searching for these lines in the messages log.

Offline fred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3664
  • eFMer
    • View Profile
    • Trails
Re: Add column in [Projects] tabs : "an app_config is active"
« Reply #3 on: April 29, 2022, 12:05:06 am »
Thanks !

Though I do not have any idea of your actual code, as Boinc client reports the presence of app_config.xml files in projects folders, that should be as simple as searching for these lines in the messages log.
You could set a message highlight e.g. with the text cc_config.xml.
The problem is the BOINC client message buffer is limited, so it wouldn't show when a computer is on for a longer period of time.

Offline ElGuillermo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Add column in [Projects] tabs : "an app_config is active"
« Reply #4 on: April 29, 2022, 07:08:45 am »
Idea :

Here's what I get from the Boinc client when I ask it to re-read the configuration files :

Code: [Select]
75575 yoyo@home 29/04/2022 08:10:06 Found app_config.xml
75574 World Community Grid 29/04/2022 08:10:06 Found app_config.xml
75573 SRBase 29/04/2022 08:10:06 Found app_config.xml
75572 NFS@Home 29/04/2022 08:10:06 Found app_config.xml
[...]
75554 29/04/2022 08:10:06 Re-reading cc_config.xml

To avoid these messages being thrown out of the buffer after a while, you could ask for a config re-reading each time you want to know if the files are detected.
This would be very cheap in terms of CPU time/data transfer, results are known almost instantly and this doesn't affect the calculations.
« Last Edit: April 29, 2022, 07:13:17 am by ElGuillermo »

Offline fred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3664
  • eFMer
    • View Profile
    • Trails
Re: Add column in [Projects] tabs : "an app_config is active"
« Reply #5 on: June 16, 2022, 05:22:22 pm »
Lack of time forces me to put these features into BoincTasks Js, https://github.com/efmer/boinctasks-js
It's so much simpler and pleasant for me to add features in the Js app, like at least 10 times faster.
Both BoincTasks and BoincTasks Js can run at the same time without much impact.

Offline ElGuillermo

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: Add column in [Projects] tabs : "an app_config is active"
« Reply #6 on: June 19, 2022, 10:57:35 am »
Hey !
Didn't see your update (I asked for notification, but didn't get any).

Cool stuff :) Thanks.