| 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: 18
|
|
| Author |
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Even removing all filters just returns nothing.
----------------------------------------PS, this is the reply Cached Tasks <?xml version="1.0" encoding="UTF-8" ?> - <ResultsStatus> <ResultsAvailable>36</ResultsAvailable> <ResultsReturned>0</ResultsReturned> <Offset>0</Offset> </ResultsStatus> Returned Tasks <?xml version="1.0" encoding="UTF-8" ?> - <ResultsStatus> <ResultsAvailable>116</ResultsAvailable> <ResultsReturned>0</ResultsReturned> <Offset>0</Offset> </ResultsStatus> Edit: The undocumented solution found by adriverhoed is limit=-1 . This pulls all results in one call if exceeding 250, the present documented max limit. [Edit 4 times, last edit by Former Member at Jan 22, 2020 5:47:02 PM] |
||
|
|
knreed
Former World Community Grid Tech Joined: Nov 8, 2004 Post Count: 4504 Status: Offline Project Badges:
|
Ok - we will investigate. Thanks for bringing this up.
|
||
|
|
knreed
Former World Community Grid Tech Joined: Nov 8, 2004 Post Count: 4504 Status: Offline Project Badges:
|
Is this for your account? I'm getting results on that call. Can you give me the exact API you are using (except for the verification code - leave that off)
|
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
The string sent is
'https://www.worldcommunitygrid.org/api/member...5&SortBy=ReceivedTime The sum of the return numbers 36+116 matched the total on the Result Status page. The preview window in the query is what shows the xml what got returned. |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Did you do something? The limit=0 used to send all records regardless of the number, now zero. Specify limit=500 and I get the old max of 250
----------------------------------------I'm pretty sure it was agreed that the limit was at least upped to 500 in the not too distant past, so something regressed. OK, found the discussion, a bit longer ago https://www.worldcommunitygrid.org/forums/wcg...ead,40202_offset,0#546990 [Edit 2 times, last edit by Former Member at Jan 20, 2020 10:00:43 PM] |
||
|
|
knreed
Former World Community Grid Tech Joined: Nov 8, 2004 Post Count: 4504 Status: Offline Project Badges:
|
We deployed an update from Sping 4 -> Spring 5, Hibernate 4 -> Hibernate 5 and WebSphere 8.5 -> WebSphere 9 today.
Something in that must have changed the behavior (there was a certain amount of code adjustments required to make those updates). I'll be taking a deeper look at this. Thanks for providing the links. |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Oh, that reminds. The API use is still blocked for people who chose to keep their data private, not to show their badges. In that case an actual error message appears in reply to a call.
|
||
|
|
knreed
Former World Community Grid Tech Joined: Nov 8, 2004 Post Count: 4504 Status: Offline Project Badges:
|
I used the IBM account (i.e. a user with lots of results) to test and I was not able to recreate your 0 records returned issue. Can you email me the exact URL you used? If you know my email send it there otherwise send it to support@worldcommunitygrid.org
I am pushing an update that will raise the max results returned limit to 1000 from 250. |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Curious, I can with just replacing the limit=250 element with limit=0. The quick test is limit=1, and i get 1 record. This I do to be able to see how many records in total need fetching (The <ResultsAvailable>nnnnn</ResultsAvailable> element) and then loop through until Pages = RoundUp(TotalRecs / PageSize,0) with incrementing offset=. Two passes are needed as by the time it's finished the world has sped another 67,000 miles around the sun, piecemeal fetching data from a live database, to ensure a complete set.
|
||
|
|
knreed
Former World Community Grid Tech Joined: Nov 8, 2004 Post Count: 4504 Status: Offline Project Badges:
|
My apologies - I misread your comment and looked at the wrong thing. Let me look at the code around what happens with limit=0.
|
||
|
|
|