On Jul 20, 2008, at 1:24 PM, Shing Hing Man wrote: > > If I submit a command that takes a long time to run, > > eg > (1) http://localhost:8000/simple/compute?session=(session) > &code=factor(2^1000 > -1) > > then the immediately returned JSON will have status equals computing. > > I have modified my Java program, so that after (1) is submitted, > > I keep querying SAGE with > http://localhost:8000/simple/status?session=(session)&cell= > (cellId) > > until the returned status is done.
Yes, this is by design. > Is there a better way to wait for (or be notified of) the completion > of a command ? You can pass a timeout parameter, which will control how long it waits for completion before returning a "computing" status. IIRC (but check the code) -1 means wait until it's done. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---