[Developers] any programmatic way to query for sandbox reloading status?
John Giannandrea
jg at metaweb.com
Fri Jul 17 20:46:22 UTC 2009
Raymond Yee wrote:
> 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?
I think one hack would be to look for the last link written to www.freebase.com
, like this:
{
"type": "/type/link",
"source": {
"id": null
},
"timestamp": null,
"sort": "-timestamp",
"limit": 1
]
and then look for that link on sandbox, like this (at the time of
writing):
{
"source": {
"id": "/guid/9202a8c04000641f800000000cf69f6e"
},
"timestamp": "2009-07-17T20:45:59.0008Z",
"type": "/type/link"
]
if you find this last link on sandbox, then the copy must be done.
-jg
More information about the Developers
mailing list