GET software/muse/state/{name}/{key}

URL

http://147.100.179.250/api/software/muse/state/{name}/{key}

Description

Returns cluster job information (IN_PROGRESS, ENDED_OK, ENDED_NOK…) as text, during cluster process.

This request follows a POST software/muse/run/{name} request and its response containing key value.

This request allows to know when the run results are ready and can be asked (by GET software/muse/run/{name}/{key} request) : see condition on cr into the “Request response” below.

This request is part of a sequence to run a software under muse cluster and get the run result, implying requests : POST software/muse/run/{name} | GET software/muse/state/{name}/{key} | GET software/muse/run/{name}/{key} | GET software/muse/content/{name}/{key}.

Request parameters

Parameter name (mandatory)

  • Description : software name

  • Type : string

Parameter key (mandatory)

Request response

In error case :

{
  "error": error text, "more":[...], "type":error type
}

Else :

{  "info": {
       "report": {
           "cr": value "OK" or "NOK" or "WAIT"
           "name": software name,
           "request", "rsrc", "process" information
       }
   }
   "msg": text where how to go on
   "url": URL value (probable following get request ; see also msg)
}

When cr is ‘OK’ into report of the response, then the run results can be asked (by GET software/muse/run/{name}/{key} request).

Examples

Into the POST software/muse/run/{name} examples, see the GET software/muse/state/{name}/{key} requests.