Force regular project update?

Message boards : Questions and problems : Force regular project update?
Message board moderation

To post messages, you must log in.

AuthorMessage
Peter Hucker of the Scottish B...
Avatar

Send message
Joined: 6 Oct 06
Posts: 1344
United Kingdom
Message 106661 - Posted: 4 Jan 2022, 11:45:06 UTC

I have a computer with a flaky graphics card that makes a few computation errors on Milkyway GPU tasks. But most go through ok. For some reason this causes Boinc (not Milkyway) to back off anywhere between an hour and 24 hours. Since Milkyway only hands out 3 hours worth of tasks in one go, I often find it sitting idle when I'm not there to shove it. I'm sure I read somewhere in the forums (but can't find it) of a way to tell Boinc to update a project with a set frequency. Anyone know what it is?
ID: 106661 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 4759
United Kingdom
Message 106662 - Posted: 4 Jan 2022, 12:08:08 UTC - in response to Message 106661.  

The facility within BOINC to do that is set at the project's end - GPUGrid is one of mine that uses it.

If a user wants to mimic the behaviour, they normally write an operating system script that calls the boinccmd utility.
ID: 106662 · Report as offensive
Peter Hucker of the Scottish B...
Avatar

Send message
Joined: 6 Oct 06
Posts: 1344
United Kingdom
Message 106663 - Posted: 4 Jan 2022, 12:35:17 UTC - in response to Message 106662.  
Last modified: 4 Jan 2022, 12:47:40 UTC

I have told Windows 10 task scheduler to run:
boinccmd --project https://milkyway.cs.rpi.edu/milkyway/ update
every 15 minutes, this should work, thanks.
ID: 106663 · Report as offensive
Peter Hucker of the Scottish B...
Avatar

Send message
Joined: 6 Oct 06
Posts: 1344
United Kingdom
Message 106669 - Posted: 4 Jan 2022, 17:49:09 UTC - in response to Message 106663.  
Last modified: 4 Jan 2022, 17:49:50 UTC

It works great once you kick it. The Windows Task Scheduler is a little weird.

Problem 1: It starts it in the wrong folder. I assumed that calling a batch file in folder X would make it run in folder X, but no, it runs it in the windows system directory, so it can't find the boinccmd.exe, and even if it had I'd have had to put in a user/password to make boinc listen. So I put the correct folder in the "run in" box, which caused it not to run it at all. I had to put a change directory command in the batch file.

Problem 2: The most frequently you can schedule it is once a day, I wanted once every 15 minutes. So I used the "once triggered, run every 15 minutes" option. Apparently manually triggering it doesn't apply, so I had to set the time of the first run to be a few minutes from now so it continued.

And I thought Boinc was badly programmed! You'd think by version 10, an OS would just work.
ID: 106669 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 4759
United Kingdom
Message 106671 - Posted: 4 Jan 2022, 18:26:36 UTC

An alternative (and the one I use at WCG/OPN) is to open a command window on the boinccmd folder, and run a circular script with an embedded wait command. No need for the task scheduler.

No, I didn't write it: one was posted on the project forum, and I tweaked it a bit until I was happy with it.
ID: 106671 · Report as offensive

Message boards : Questions and problems : Force regular project update?

Copyright © 2022 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.