Force report?

log in

Advanced search

Message boards : Number crunching : Force report?

Author Message
bfromcolo
     
Send message
Joined: 3 Dec 16
Posts: 4
Credit: 453,200
RAC: 17
Total hours: 2,132,889
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.

Dr Who Fan
     
Avatar
Send message
Joined: 29 Jul 11
Posts: 316
Credit: 1,154,949
RAC: 362
Total hours: 1,596,261
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.
____________

mmonnin
       
Send message
Joined: 22 Aug 16
Posts: 417
Credit: 1,928,407
RAC: 705
Total hours: 9,133,233
Message 8565 - Posted: 14 Nov 2021, 21:53:33 UTC

Tasks have a week deadline and they don't cancel.

Profile DoctorNow
         
Avatar
Send message
Joined: 7 Apr 10
Posts: 224
Credit: 455,547
RAC: 48
Total hours: 1,243,854
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

Profile Michael Goetz
     
Avatar
Send message
Joined: 18 Apr 13
Posts: 165
Credit: 1,018,280
RAC: 120
Total hours: 1,597,321
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.

Profile Michael Goetz
     
Avatar
Send message
Joined: 18 Apr 13
Posts: 165
Credit: 1,018,280
RAC: 120
Total hours: 1,597,321
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.

Profile DoctorNow
         
Avatar
Send message
Joined: 7 Apr 10
Posts: 224
Credit: 455,547
RAC: 48
Total hours: 1,243,854
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

Profile Michael Goetz
     
Avatar
Send message
Joined: 18 Apr 13
Posts: 165
Credit: 1,018,280
RAC: 120
Total hours: 1,597,321
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.


Post to thread

Message boards : Number crunching : Force report?


Home | My Account | Message Boards | Results


Copyright © 2024 Sebastien