-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: add logging #41
api: add logging #41
Conversation
8016efe
to
1e5324a
Compare
docs/restapi.rst
Outdated
POST /jobs | ||
---------- | ||
Create Jobs | ||
----------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create jobs
here and elsewhere; the second word is lowercase.
reana_job_controller/app.py
Outdated
|
||
.. http:get:: /jobs/<job_id> | ||
|
||
Returns a JSON list with all the jobs. | ||
Returns the Job object indentified by `job_id`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns the job object...
reana_job_controller/app.py
Outdated
@@ -247,16 +286,52 @@ def get_job(job_id): | |||
} | |||
|
|||
:resheader Content-Type: application/json | |||
:statuscode 200: no error - the list has been returned. | |||
:statuscode 200: no error - the Job has been returned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"no error" sounds negative, rather formulate positive things positively 😄 for example "200 OK - the jo has been returned"
1e5324a
to
aa95ac5
Compare
Once #40 gets merged I will rebase on top of it and adapt the new endpoint 🙃 |
reana_job_controller/app.py
Outdated
@@ -232,7 +271,7 @@ def get_job(job_id): | |||
|
|||
{ | |||
"job": { | |||
"cmd": "sleep 1000", | |||
"cmd": "echo helloworld", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
reana_job_controller/app.py
Outdated
@@ -136,7 +120,7 @@ def create_job(): | |||
|
|||
{ | |||
"docker-img": "busybox", | |||
"cmd": "sleep 1000", | |||
"cmd": "echo helloworld", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
Signed-off-by: Diego Rodriguez <diego.rodriguez@cern.ch>
a6a9378
to
792aab5
Compare
d54ed28
to
0b99860
Compare
* Refactors JOB_DB management towards DB switch. Signed-off-by: Diego Rodriguez <diego.rodriguez@cern.ch>
Tested creating cluster from scratch. ✅ (along with reanahub/reana-workflow-engine-yadage#26) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Diego Rodriguez diego.rodriguez@cern.ch