| Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
| World Community Grid Forums
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 65
|
|
| Author |
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
It is documented: https://www.worldcommunitygrid.org/help/viewSearch.do?searchString=verification .In old school, find your own way, me looking at available codes on the My Profile page and then quizzing the systems, be it WCG help, BOINC wiki or Google to find out what each of the codes stand for and do. Would [wishful thinking] the My Profile page have help links back to the documentation, the inquisitive, which mouse users are said to be more than keyboard users, latter more productive, the dissemination of that knowledge would be much broader and swifter. Anyway, my tool has maxed out on what can be done with all of the scraped together knowledge... data collection now at a level and duration that a myriad of plots can be developed, just never been asked for, so not allotting any time to such development.
(from the department of sigh ;o) |
||
|
|
KerSamson
Master Cruncher Switzerland Joined: Jan 29, 2007 Post Count: 1684 Status: Offline Project Badges:
|
Hi SekeRob,
----------------------------------------even if I tend to experiment a lot on my own, I am also one of the crazy guy who tries to read the documentation from time to time. I am maybe not smart enough but it is not documented by the API description (see https://www.worldcommunitygrid.org/help/viewTopic.do?shortName=api). Furthermore, the API description is not really easy to find if you don't know that it is available. I am not willing to complain, I only hope that this discussion and the earned advices could help other members to find the information they need. Again, many thanks for your accurate support. Cheers, Yves ---------------------------------------- [Edit 1 times, last edit by KerSamson at Jan 8, 2017 11:12:19 AM] |
||
|
|
knreed
Former World Community Grid Tech Joined: Nov 8, 2004 Post Count: 4504 Status: Offline Project Badges:
|
I tweaked the FAQ description so that the other FAQ is also returned when you search for API
|
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
Posting a new version of my script called "wcgresults". By running it at regular intervals, say once per hour scheduled through crontab, you can collect a flat database of your results.
With this new version you can also: * spot results that got 0 points (option -a); * let the program explain about the meaning of each ExitStatus >= 192 (option -E); * choose an alternative directory, instead of /var/tmp, to download files (option -D); * record WUs that are still in progress (probably to some other file using option -f); * use the option -h to see what options are available. :-) The 19 fields (including WorkunitId and ResultId) in the flat database are now: AppName, ClaimedCredit, CpuTime, ElapsedTime, ExitStatus, GrantedCredit, DeviceId, DeviceName, ModTime, WorkunitId, ResultId, Name, Outcome, ReceivedTime, ReportDeadline, SentTime, ServerState, ValidateState, FileDeleteState. Running the program with the option -f will add records to a logfile that you specify. Running it without the options -f and -d needs an earlier downloaded file, e.g.: wcgresults -d; : now take note of the downloaded filename, say "RESULT"; wcgresults RESULT;\ In your crontab you can put (where N is the value of the minute within the hour) e.g.: N * * * * $HOME/bin/wcgresults -df $HOME/tmp/wcg.log ---8< --- SNIP SNIP SNIP --- CUT HERE ---8< #!/bin/sh |
||
|
|
KerSamson
Master Cruncher Switzerland Joined: Jan 29, 2007 Post Count: 1684 Status: Offline Project Badges:
|
Many thanks Adri, I will try it.
----------------------------------------Cheers, Yves |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
This case is really something weird with the XML API:
----------------------------------------On Thu 19 Jan 2017 at 23:59:11 (UTC) I downloaded a JSON status file of validated results and here's one of the WUs: {That's right: the ReceivedTime lies 10 days in the future! (... and the ReportDeadline is more than 21 hours earlier than the SentTime!) It must be some temporary problem, because when I noticed it it was already 15 minutes later, so I decided to take another stab at downloading a new JSON file and now, 22 minutes later, the ReceivedTime and the ReportDeadline have changed to more acceptable values :-) as follows: {Here's a diff (produced by vimdiff) concerning this particular result: localtime: 2017-01-20 00:59:11 localtime: 2017-01-20 01:22:03 [Edit 2 times, last edit by adriverhoef at Jan 20, 2017 1:07:50 AM] |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
Found another strange case, caught at 2017-01-19 17:59:04 (UTC):
{Here, the SentTime lies 10 days in the future, 10 days beyond the ReceivedTime and ReportDeadline.One hour later, everything was looking normal again: {(SentTime and ReportDeadline are now showing a more reasonable value. :-) ) |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
Searching for more anomalies I found 95 occurrences in total since 25-12-2016, where SentTime lies way beyond ReceivedTime:
SentTime ReportDeadline ReceivedTime Name |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
Posting a new version of my script called "wcgresults". By running it at regular intervals — say once per hour scheduled through crontab — you can collect a flat database of your results.
----------------------------------------New in this version: * option -q - with this option it is possible to spot the number of jobs in progress per device. Examples, run from a terminal screen: $ wcgresults -dqThere is more information if you double the 'q': $ while sleep 3600; do wcgresults -dqq; done * option -O (= capital letter O) - let the program explain about the meaning of each Outcome * option -S (= capital letter S) - let the program explain about the meaning of each ServerState * option -V (= capital letter V) - let the program explain about the meaning of each ValidateState Running the program with the option -f will add records to a logfile that you specify. In your crontab you can put (where N is the value of the minute within the hour) e.g.: N * * * * $HOME/bin/wcgresults -df $HOME/tmp/wcg.log Select the text below and save it to a file called "wcgresults" in your directory $HOME/bin (and do "chmod +x ~/bin/wcgresults"). ---8< --- SNIP SNIP SNIP --- CUT HERE ---8< #!/bin/sh [Edit 3 times, last edit by adriverhoef at Feb 1, 2017 7:15:02 PM] |
||
|
|
TonyEllis
Senior Cruncher Australia Joined: Jul 9, 2008 Post Count: 286 Status: Offline Project Badges:
|
Posting a new version of my script called "wcgresults" Thanks adriverhoef for producing that script - it has proved very reliable over the last 10 days.. using the -dq option and graphing the results... http://www.sraellis.tk/frame-17-wcg_wip.html
Run Time Stats https://grassmere-productions.no-ip.biz/
----------------------------------------[Edit 1 times, last edit by TonyEllis at Feb 13, 2017 7:05:40 PM] |
||
|
|
|