GET software/muse/content/{name}/{key}¶
URL
http://147.100.179.250/api/software/muse/content/{name}/{key}
Description¶
Returns cluster job information as file : the whole run folder (.zip).
This request follows a POST software/muse/run/{name} request and its response containing key value.
This request allows to investigate if problems.
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)¶
Description : key value
Type : string
Note : comes from the response of the initial POST software/muse/run/{name} request.
Request response¶
In error case :
{ "error": error text, "more":[...], "type":error type }Else :
run_path folder that have been zipped (as is).
Example¶
After this POST software/muse/run/{name} request to ask for run :
With name = sw_example
Request :
curl -H "Content-Type: application/json" -d '{"cmd":"python /add.py 4 5", "returned_type":"stdout", "todownload":"no"}' http://147.100.179.250/api/software/muse/run/sw_example/Response :
{ "msg":"GET http://147.100.179.250/api/software/muse/state/sw_example/58ae6cea-df31-4059-9466-b817c337985d/ request to get cluster job state, while waiting for results (the GET http://147.100.179.250/api/software/muse/run/sw_example/58ae6cea-df31-4059-9466-b817c337985d/ request to get results will be possible once job finished). Keep the software name value=sw_example and the key value=58ae6cea-df31-4059-9466-b817c337985d in order to be able to follow your POST request. Notifications will be sent during process running if mail-user given into sbatch_list option. (__todo__: add information about temps imparti...)", "url":"http://147.100.179.250/api/software/muse/state/sw_example/58ae6cea-df31-4059-9466-b817c337985d/" }
One can do this GET software/muse/content/{name}/{key} request to ask for cluster job information as .zip (the whole run folder), for example to investigate if problems :
Request :
curl --output MYRETURNEDFILE2_MUSE.zip http://147.100.179.250/api/software/muse/content/sw_example/58ae6cea-df31-4059-9466-b817c337985d/Response :
MYRETURNEDFILE2_MUSE.zip