{"action":"closed","issue":{"url":"https://api.github.com/repos/pricingassistant/mrq/issues/72","labels_url":"https://api.github.com/repos/pricingassistant/mrq/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/pricingassistant/mrq/issues/72/comments","events_url":"https://api.github.com/repos/pricingassistant/mrq/issues/72/events","html_url":"https://github.com/pricingassistant/mrq/issues/72","id":56658022,"number":72,"title":"Add an official way of getting back the result of a job","user":{"login":"achauve","id":296285,"avatar_url":"https://avatars.githubusercontent.com/u/296285?v=3","gravatar_id":"","url":"https://api.github.com/users/achauve","html_url":"https://github.com/achauve","followers_url":"https://api.github.com/users/achauve/followers","following_url":"https://api.github.com/users/achauve/following{/other_user}","gists_url":"https://api.github.com/users/achauve/gists{/gist_id}","starred_url":"https://api.github.com/users/achauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achauve/subscriptions","organizations_url":"https://api.github.com/users/achauve/orgs","repos_url":"https://api.github.com/users/achauve/repos","events_url":"https://api.github.com/users/achauve/events{/privacy}","received_events_url":"https://api.github.com/users/achauve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pricingassistant/mrq/labels/API","name":"API","color":"fbca04"},{"url":"https://api.github.com/repos/pricingassistant/mrq/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pricingassistant/mrq/milestones/2","labels_url":"https://api.github.com/repos/pricingassistant/mrq/milestones/2/labels","id":912788,"number":2,"title":"0.9.0","description":"API freeze for 1.0","creator":{"login":"sylvinus","id":410452,"avatar_url":"https://avatars.githubusercontent.com/u/410452?v=3","gravatar_id":"","url":"https://api.github.com/users/sylvinus","html_url":"https://github.com/sylvinus","followers_url":"https://api.github.com/users/sylvinus/followers","following_url":"https://api.github.com/users/sylvinus/following{/other_user}","gists_url":"https://api.github.com/users/sylvinus/gists{/gist_id}","starred_url":"https://api.github.com/users/sylvinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylvinus/subscriptions","organizations_url":"https://api.github.com/users/sylvinus/orgs","repos_url":"https://api.github.com/users/sylvinus/repos","events_url":"https://api.github.com/users/sylvinus/events{/privacy}","received_events_url":"https://api.github.com/users/sylvinus/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2014-12-22T22:04:17Z","updated_at":"2015-02-11T21:45:17Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-02-05T11:24:46Z","updated_at":"2015-02-11T21:45:17Z","closed_at":"2015-02-11T21:45:17Z","body":"I use custom code for now:\r\n\r\n```\r\njob = Job(job_id)\r\nresult = job.collection.find_one({\"_id\": ObjectId(self._job_id)},\r\n                                                  fields={'result': 1, 'status': 1})\r\n```\r\n\r\nbut obviously it could be encapsulated in the Job class.\r\n\r\nI looked at the Job code but the constructor parameters are not crystal clear (indeed `fetch` does not fetch all the job data, especially not the result). Maybe a `Job(id, fetch=true)` then `job.result` would do the job? ;-)"}}