[OTDev] Task redirect

Martin Guetlein martin.guetlein at googlemail.com
Tue Apr 27 11:52:59 CEST 2010


On Tue, Apr 27, 2010 at 11:24 AM, Tobias Girschick <
tobias.girschick at in.tum.de> wrote:

> Hi All,
>
> On Tue, 2010-04-27 at 11:52 +0300, Nina Jeliazkova wrote:
> > Hello Tobias,
> >
> > Tobias Girschick wrote:
> > > Hello All,
> > >
> > > we removed the redirect from the TUM task services as suggested by
> > > Martin. All Tasks now return the resulting URI and status code 200 on
> > > finishing. No automatic redirects anymore.
> > >
> > Just to clarify - if a model completes execution and posts the result
> > dataset to the dataset service, what will be returned - 200 or 202 ?
>
> Now I return 200. How are other groups handling this, e.g. Pantelis?
> Martin?
>


Hello Tobias, Nina,

I would expect 202 as long as the task is running, 202 as soon as the task
is finished. The resultURI of the task maybe another task tough.

So in Tobias Case:
* model building returns tum-task with 202 while the model is running
* model finishes: the results are posted to ambits dataset service, the
model service receives an ambit task
* tum-task is set to 200, resultURI of tum-task is set to ambit-task

Best regards,
Martin




> Nina told me that returning 200 will cause Problems with ToxPredict (at
> the moment). What exactly is expected by the validation services?
>
> We definitely need a uniform solution here. What do other developers
> think? I have no problem returning 202 on completion (calculation
> completion) if the complete job is still not done (e.g. AMBIT upload
> initiated by my service).
>
> regards,
> Tobias
>
> >
> > Best regards,
> > Nina
> > > @Martin: Could you check if everything works fine now with the
> > > validation services?
> > >
> > > regards,
> > > Tobias + Fabian
> > >
> > >
> >
>
>
> --
> Dipl.-Bioinf. Tobias Girschick
>
> Technische Universität München
> Institut für Informatik
> Lehrstuhl I12 - Bioinformatik
> Bolzmannstr. 3
> 85748 Garching b. München, Germany
>
> Room: MI 01.09.042
> Phone: +49 (89) 289-18002
> Email: tobias.girschick at in.tum.de
> Web: http://wwwkramer.in.tum.de/girschick
>
> _______________________________________________
> Development mailing list
> Development at opentox.org
> http://www.opentox.org/mailman/listinfo/development
>



-- 
Dipl-Inf. Martin Gütlein
Phone:
+49 (0)761 203 8442 (office)
+49 (0)177 623 9499 (mobile)
Email:
guetlein at informatik.uni-freiburg.de



More information about the Development mailing list