Force report?

Message boards : Number crunching : Force report?
Message board moderation

To post messages, you must log in.

AuthorMessage
bfromcolo
     

Send message
Joined: 3 Dec 16
Posts: 4
Credit: 453,896
RAC: 0
Message 8563 - Posted: 14 Nov 2021, 18:48:03 UTC

Is it possible to get the running WUProp task to report what it has recorded before the 6 hour run time is completed? Will an abort cause it report?

I am asking because I dual boot most of my systems, run VMs, reinstall OS, tinker, etc. This would be handy to force WUProp to complete the running task when I want to switch or terminate the OS and not have to wait or potentially lose data. No big deal, just curious.
ID: 8563 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Dr Who Fan
     
Avatar

Send message
Joined: 29 Jul 11
Posts: 334
Credit: 1,240,297
RAC: 321
Message 8564 - Posted: 14 Nov 2021, 21:38:57 UTC - in response to Message 8563.  

Would be a nice feature.
It's 6 hours to report what's recorded or nothing.

ID: 8564 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
mmonnin
       

Send message
Joined: 22 Aug 16
Posts: 447
Credit: 2,091,073
RAC: 703
Message 8565 - Posted: 14 Nov 2021, 21:53:33 UTC

Tasks have a week deadline and they don't cancel.
ID: 8565 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile DoctorNow
         
Avatar

Send message
Joined: 7 Apr 10
Posts: 224
Credit: 461,423
RAC: 0
Message 8567 - Posted: 15 Nov 2021, 19:59:13 UTC - in response to Message 8563.  

Is it possible to get the running WUProp task to report what it has recorded before the 6 hour run time is completed? Will an abort cause it report?

I guess that would be similar to the trickles of CPDN, which upload intermediate results from time to time. Technically surely possible, but hardly to program as far as I know, CPDN is the only project which has that. And for just 6 hours probably not worth the effort...
Life is Science, and Science rules. To the universe and beyond
Member of BOINC@Heidelberg
My BOINC-Stats
ID: 8567 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Michael Goetz
     
Avatar

Send message
Joined: 18 Apr 13
Posts: 168
Credit: 1,050,618
RAC: 134
Message 8568 - Posted: 15 Nov 2021, 20:23:52 UTC - in response to Message 8567.  

Is it possible to get the running WUProp task to report what it has recorded before the 6 hour run time is completed? Will an abort cause it report?

I guess that would be similar to the trickles of CPDN, which upload intermediate results from time to time. Technically surely possible, but hardly to program as far as I know, CPDN is the only project which has that. And for just 6 hours probably not worth the effort...


Primegrid uses trickles. :)

And they're fairly easy to code.
Want to find one of the largest known primes? Try PrimeGrid. Or help cure disease at WCG.

ID: 8568 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Michael Goetz
     
Avatar

Send message
Joined: 18 Apr 13
Posts: 168
Credit: 1,050,618
RAC: 134
Message 8569 - Posted: 15 Nov 2021, 20:35:53 UTC - in response to Message 8568.  

Is it possible to get the running WUProp task to report what it has recorded before the 6 hour run time is completed? Will an abort cause it report?

I guess that would be similar to the trickles of CPDN, which upload intermediate results from time to time. Technically surely possible, but hardly to program as far as I know, CPDN is the only project which has that. And for just 6 hours probably not worth the effort...


Primegrid uses trickles. :)

And they're fairly easy to code.


As a follow up to this, if I was going to do it...

step 1) Read the boinc documentation for trickles. It's very simple. Your app calls an API, and a row gets inserted into the server's database.

step 2) You write a cron on the server to handle the information sent by the trickle. For this, what I would do is just keep that trickle in the database until the associated task completes, either by success or failure. If the task succeeds, just erase the trickle. If the task fails, process the data in the trickle as if the task succeeded. No credit, but you still get the hours and WUProp gets some more information for its task properties repository.

When should the task trickle? I would not have it trickle automatically. That would probably be far too much data to store on the server. But if you know you're going to kill the task and want to upload its data, you could manually trigger the trickle. The simplest way to do this would be to "touch" (i.e., create) an empty file (perhaps called "trickle.now") in the slot directory where the WUProp task is running. Periodically (e.g., once a minute) the app could check for the existence of trickle.now, and, if found, send a trickle, and then delete the trickle.now file.

That's how I would do it. The easy part is changing the app. That's probably only a few lines of code. The hard (or harder) part is the cron on the server to process the trickles and the data contained within.
Want to find one of the largest known primes? Try PrimeGrid. Or help cure disease at WCG.

ID: 8569 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile DoctorNow
         
Avatar

Send message
Joined: 7 Apr 10
Posts: 224
Credit: 461,423
RAC: 0
Message 8570 - Posted: 15 Nov 2021, 20:46:40 UTC - in response to Message 8568.  

Primegrid uses trickles. :)

And they're fairly easy to code.

Never knew... my bad. :-(
On what subprojects are they used, I guess only on the long ones?
Life is Science, and Science rules. To the universe and beyond
Member of BOINC@Heidelberg
My BOINC-Stats
ID: 8570 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Michael Goetz
     
Avatar

Send message
Joined: 18 Apr 13
Posts: 168
Credit: 1,050,618
RAC: 134
Message 8571 - Posted: 17 Nov 2021, 15:06:25 UTC - in response to Message 8570.  

Primegrid uses trickles. :)

And they're fairly easy to code.

Never knew... my bad. :-(
On what subprojects are they used, I guess only on the long ones?


Most of them. Trickles are how we implement the variable deadlines. Everything new uses them, including everything LLR or Genefer. AP27 and WW also. PPS sieve hasn't been updated in a very long time and was never modified to use the system.

The apps only trickle once a day, so you'll only see it happen on long-running tasks. We process about thirty thousand trickles each day.
Want to find one of the largest known primes? Try PrimeGrid. Or help cure disease at WCG.

ID: 8571 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : Force report?

©2024 Sébastien