EUDAT-B2STAGE / http-api

RESTful HTTP-API for the B2STAGE service inside the EUDAT project
https://eudat-b2stage.github.io/http-api/
MIT License
7 stars 7 forks source link

Configure if we wait for rancher-tasks #120

Closed merretbuurman closed 6 years ago

merretbuurman commented 6 years ago

We can now configure whether rancher should wait for container to be running or stopped. Basically, async tasks are done by celery, and tasks that are directly run by rancher are potentially synchronous, but as they take a while, the api did not wait for their completion, not even for their succesfull launch. (Making them async might be a solution on the long run).

For the moment, this code lets the user switch on that the endpoint waits for either the container to be running or the container to be finished. Useful for debugging or first time installation.

(It took me a while to understand why I got success responses, but no containers were created.)