prominence-eosc / prominence

PROMINENCE server
Apache License 2.0
2 stars 0 forks source link

Add API endpoint for executing commands in jobs #93

Open alahiff opened 5 years ago

alahiff commented 5 years ago

This is required for prominence exec.

alahiff commented 5 years ago

Following Kubernetes (see https://blog.openshift.com/executing-commands-in-pods-using-k8s-api/), we will issue a POST request to /jobs/<job id>/exec.

alahiff commented 5 years ago

It's working, but get messags like this in the logs:

subprocess 45 exited with code 1

from uwsgi. Need to understand this...

alahiff commented 5 years ago

REST API updates implemented in https://github.com/prominence-eosc/prominence/commit/33e0d5cf6e997493c968e92a7103e91e5ced3416 https://github.com/prominence-eosc/prominence/commit/dcb7549c9cb956a809d9fc31cfb812254a5d91d1 https://github.com/prominence-eosc/prominence/commit/fff9c945deea5c03caba32a8b4e3537ba42fdf7b https://github.com/prominence-eosc/prominence/commit/c03cd04707817b92f97d6c11c078045c3119d6db https://github.com/prominence-eosc/prominence/commit/f63678d52b67913ccc74a3374a85ca744d36e62e https://github.com/prominence-eosc/prominence/commit/3a34988483941f37e098a43b7d22e93c1cef2f6f https://github.com/prominence-eosc/prominence/commit/f1261137dcd008ba8e786e70a11985f3aa9490b1