Skip to content
Snippets Groups Projects
Commit e009ed98 authored by Kevin S. Hahn's avatar Kevin S. Hahn
Browse files

update status and activity on PUT /api/jobs/<_id>

parent f22fa374
No related branches found
No related tags found
No related merge requests found
...@@ -133,4 +133,4 @@ class Job(base.RequestHandler): ...@@ -133,4 +133,4 @@ class Job(base.RequestHandler):
payload = self.request.json payload = self.request.json
# TODO: validate the json before updating the db # TODO: validate the json before updating the db
log.debug(payload) log.debug(payload)
self.app.db.jobs.update({'_id': int(_id)}, {'$set': {'status': payload.get('status')}}) self.app.db.jobs.update({'_id': int(_id)}, {'$set': {'status': payload.get('status'), 'activity': payload.get('activity')}})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment