Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
World Community Grid Forums
Category: Active Research Forum: Help Stop TB Thread: Using Scheduled boinccmd to get HSTB Work |
No member browsing this thread |
Thread Status: Active Total posts in this thread: 158
|
Author |
|
NixChix
Veteran Cruncher United States Joined: Apr 29, 2007 Post Count: 1187 Status: Offline Project Badges: |
I am starting this as a separate thread rather than continue this discussion in the Limited workunits for Help Stop TB thread. I think the discussion started back on December 11 of using crontab in Linux to launch boinccmd at a specific time to get work for HSTB. I tried this same idea in Windows using Task Scheduler and a batch file. After the first successful test, I replicated on 3 additional computers, but I realized that a batch file was not needed and instead launched boinccmd directly from Task Scheduler at 3 minutes and 33 minutes after each hour.
----------------------------------------I have been able to advance from 30 days to 55 days CPU time since starting earlier this month. Although I have this set up on 4 computers using identical settings, I have been able to reliably get jobs on only one computer. Cheers |
||
|
gb009761
Master Cruncher Scotland Joined: Apr 6, 2005 Post Count: 2977 Status: Offline Project Badges: |
NixChix, there is one advantage of, on your Windows boxes, running the command via a batch job - as that way, you can modify the running of the command a lot easier.
----------------------------------------For me, I've got it so that it spurts out the date/time to a text file (which, I can edit later, recording as to if/when I got some and the type), and also, if in the future I wish to stop "fishing", I can simply "REM " the command out, thus stopping the boinccmd from being called. Also, as I only seem to have been successful at 10:33 & 11:03 UTC, I've been tempted to add in some programming checks to skip over calling the boinccmd if outwith these times. |
||
|
eLPeCKo
Cruncher Joined: Feb 14, 2010 Post Count: 19 Status: Offline Project Badges: |
Thanks guys for a great tip.
----------------------------------------I configured my boxes to call an update every 30 minutes, so lets see if I will finally catch some WUs this year |
||
|
mmonnin
Advanced Cruncher Joined: Jul 20, 2016 Post Count: 148 Status: Offline Project Badges: |
I did the same thing for MilkyWay before that project updated their tasks to bundles. It sure helped but it does add load to the servers.
---------------------------------------- |
||
|
DadX
Advanced Cruncher Joined: Sep 9, 2006 Post Count: 56 Status: Offline Project Badges: |
It seems to me that a script can be written to request new tasks only if you need more work. It shouldn't be a big effort to parse the output of boinccmd with either --get_tasks or --get_simple_gui_info to get a list of tasks, parse the list for the project and do the update if you have less that 'n' tasks. I'm not at a computer where I can check but depending on what's is returned it might be possible to make a better decision based on state, remaining time and elapse time of the tasks.
----------------------------------------It wouldn't be perfect but it would cut down on the number of updates the servers have to processes. |
||
|
NixChix
Veteran Cruncher United States Joined: Apr 29, 2007 Post Count: 1187 Status: Offline Project Badges: |
I hadn't gotten a HSTB job in over a week. Since the returns were down to less than 100 I decided to stop the nightly routine. I started disabling the script to run boinccmd every 30 min. However the one computer that I hadn't disabled got three jobs at new times, 7 hours later than usual at 0903, 0933, and 1003 PST.
----------------------------------------Not only was it the only computer that was still running the script every 30 min, it was the only one that ran it for 12 hours instead of 2 hours. I hope the fix that Uplinger posted about returns the flow of work to a level that can satisfy the badge hunters without having to babysit the computer. Cheers |
||
|
NixChix
Veteran Cruncher United States Joined: Apr 29, 2007 Post Count: 1187 Status: Offline Project Badges: |
I exported the settings from my Windows Task Scheduler that I use on my computer. It initiates boinccmd every 30 minutes for 12 hours. After you import it, you can tweak it all you want. The important part is at the end.
----------------------------------------<?xml version="1.0" encoding="UTF-16"?> Save the text above into a file Update BOIC.XML, then open Windows Task Scheduler and import the XML file using the Action menu. You will need to change yourloginid above to your user id either in the file or after importing. It will start at 10:03 UTC, but you can adjust to launch at whatever time you wish. It will run indefinitely until you disable it. Promise me that you won't let this run forever and that you will disable it once this dry spell is over. Also be sure that your computer clock is accurate. You can check it using time.is. Cheers |
||
|
KLiK
Master Cruncher Croatia Joined: Nov 13, 2006 Post Count: 3108 Status: Offline Project Badges: |
thx NixChix! ;)
---------------------------------------- |
||
|
Speedy51
Veteran Cruncher New Zealand Joined: Nov 4, 2005 Post Count: 1265 Status: Offline Project Badges: |
thx NixChix! for the above script. When I try to add to task scheduler I get the following message "One or more of the specified arguments are not valid" I have changed my user ID I have also changed the location of the command file (at bottom of script) as I have 64 bit system. I am running windows 10 I have selected this accordingly I am also based in New Zealand if I need to change the date and time section could somebody please explain how. Thank you for any assistance
---------------------------------------- |
||
|
KLiK
Master Cruncher Croatia Joined: Nov 13, 2006 Post Count: 3108 Status: Offline Project Badges: |
thx NixChix! for the above script. When I try to add to task scheduler I get the following message "One or more of the specified arguments are not valid" I have changed my user ID I have also changed the location of the command file (at bottom of script) as I have 64 bit system. I am running windows 10 I have selected this accordingly I am also based in New Zealand if I need to change the date and time section could somebody please explain how. Thank you for any assistance It worked for me on x64 bit Win10, with CET setting...so why shouldn't work for you? All I've changed is a username, which was still invalid...so I changed that within settings in Task Scheduler...Just in list General, go to "Change User or Group"m then "Advanced" & then "Find New"...& sellect from the list your user & it will work! |
||
|
|