[Developers] any programmatic way to query for sandbox reloading status?

Raymond Yee raymond.yee at gmail.com
Fri Jul 17 19:25:15 UTC 2009


Hi Kirrily,

Great -- that's the trick that I'm looking for.  One question though: is 
it still important to know whether we are in the *middle* of a sandbox 
refresh?  That is, is it possible that the "Sandbox hasn't been 
refreshed yet." topic has disappeared but  the refresh hasn't completed 
yet?  I want to avoid writing to the sandbox in the middle of a refresh 
-- or is it not possible to do so while the refresh is happening?

(From a practical POV, I know that I could just avoid doing sandbox 
writes on Monday afternoon/evening and wait for my "Sandbox hasn't been 
refreshed yet." to disappear -- and that would be good enough for me...)

-Raymond


Kirrily Robert wrote:
> It seems to me that you could do this yourself, in a weird way.  When  
> you run your sandbox updater, create a topic on sandbox called  
> "Sandbox hasn't been refreshed yet."  Then when your cron job runs,  
> look for the presence of that topic, also checking for creator =  
> rdhyee just to be sure.  If the topic doesn't exist, it means sandbox  
> has been refreshed, in which case you run your updater again and re- 
> create the topic.
>
> Hacky, but should do the trick.
>
> K.
>
> On 17/07/2009, at 11:48 AM, Raymond Yee wrote:
>
>   
>> Now that freebase-python 1.0 makes it easier to easier to save and  
>> copy
>> types and objects around
>> (http://blog.freebase.com/2009/07/10/freebase-python-1-0/ ), I'm
>> thinking of automating the process of saving my sandbox work and
>> reloading it every week.  Is there an API call (or series of API  
>> calls)
>> I can make to determine 1) whether the sandbox is in the process of
>> being reloaded and 2) when that reloading is done?  Also some
>> information that indicates an estimate of when the next reload will
>> start and when it will end would be helpful for automating saving my
>> work between sandbox refreshes.
>>
>> -Raymond
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
>>     
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090717/84a2119c/attachment-0001.htm 


More information about the Developers mailing list