{"action":"opened","number":589,"pull_request":{"review_comments":0,"created_at":"2011-11-28T15:37:07Z","state":"open","patch_url":"https://github.com/gem/openquake/pull/589.patch","updated_at":"2011-11-28T15:37:07Z","changed_files":4,"_links":{"review_comments":{"href":"https://api.github.com/repos/gem/openquake/pulls/589/comments"},"comments":{"href":"https://api.github.com/repos/gem/openquake/issues/589/comments"},"html":{"href":"https://github.com/gem/openquake/pull/589"},"self":{"href":"https://api.github.com/repos/gem/openquake/pulls/589"}},"user":{"gravatar_id":"465f9251098130aba5c25e89381e4633","id":367773,"url":"https://api.github.com/users/al-maisan","avatar_url":"https://secure.gravatar.com/avatar/465f9251098130aba5c25e89381e4633?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"al-maisan"},"issue_url":"https://github.com/gem/openquake/issues/589","comments":0,"body":"Hello there!\r\n\r\nThis is the second piece of https://bugs.launchpad.net/openquake/+bug/894398.\r\nFor tasks whose results are ignored we now may pass a post-processing function\r\nto utils.tasks.distribute(). It will receive the same parameters as the task\r\nfunction.\r\n\r\nIf more parameters are needed (e.g. the realization number in case of\r\nserializing hazard curves the post-processing function can be curried\r\nusing functools.partial() before being passed to distribute())\r\n\r\nN.B.: the post-processing function is likely to execute in parallel with\r\nlonger running tasks.\r\n\r\nPlease let me know what you think!\r\n","merged":false,"deletions":38,"commits":9,"mergeable":null,"id":533683,"base":{"user":{"gravatar_id":"e180c2d7040302ddc13efce226e948bd","id":316546,"url":"https://api.github.com/users/gem","avatar_url":"https://secure.gravatar.com/avatar/e180c2d7040302ddc13efce226e948bd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","login":"gem"},"repo":{"created_at":"2010-06-28T14:59:42Z","pushed_at":"2011-11-25T18:01:30Z","clone_url":"https://github.com/gem/openquake.git","updated_at":"2011-11-25T18:01:31Z","private":false,"name":"openquake","watchers":34,"master_branch":null,"svn_url":"https://svn.github.com/gem/openquake","language":"Python","forks":25,"owner":{"gravatar_id":"e180c2d7040302ddc13efce226e948bd","id":316546,"url":"https://api.github.com/users/gem","avatar_url":"https://secure.gravatar.com/avatar/e180c2d7040302ddc13efce226e948bd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","login":"gem"},"id":744916,"homepage":"openquake.org","description":"OpenQuake","git_url":"git://github.com/gem/openquake.git","html_url":"https://github.com/gem/openquake","size":2936,"fork":false,"url":"https://api.github.com/repos/gem/openquake","open_issues":40,"ssh_url":"git@github.com:gem/openquake.git"},"sha":"5ff2c5e2863238c5ee59d2984ea3577d59e6677f","ref":"master","label":"gem:master"},"additions":92,"merged_by":null,"number":589,"head":{"user":{"gravatar_id":"465f9251098130aba5c25e89381e4633","id":367773,"url":"https://api.github.com/users/al-maisan","avatar_url":"https://secure.gravatar.com/avatar/465f9251098130aba5c25e89381e4633?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"al-maisan"},"repo":{"created_at":"2011-01-29T15:42:36Z","pushed_at":"2011-11-28T15:26:52Z","clone_url":"https://github.com/al-maisan/openquake.git","updated_at":"2011-11-28T15:26:52Z","private":false,"name":"openquake","watchers":1,"master_branch":null,"svn_url":"https://svn.github.com/al-maisan/openquake","language":"Python","forks":0,"owner":{"gravatar_id":"465f9251098130aba5c25e89381e4633","id":367773,"url":"https://api.github.com/users/al-maisan","avatar_url":"https://secure.gravatar.com/avatar/465f9251098130aba5c25e89381e4633?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"al-maisan"},"id":1306319,"homepage":"openquake.org","description":"OpenQuake","git_url":"git://github.com/al-maisan/openquake.git","html_url":"https://github.com/al-maisan/openquake","size":212,"fork":true,"url":"https://api.github.com/repos/al-maisan/openquake","open_issues":0,"ssh_url":"git@github.com:al-maisan/openquake.git"},"sha":"f98007127953a8b059748312d8b25e662a9fed7e","ref":"parallelize-serialization","label":"al-maisan:parallelize-serialization"},"title":"Prepare to parallelize the serialization of hazard curves","closed_at":null,"html_url":"https://github.com/gem/openquake/pull/589","url":"https://api.github.com/repos/gem/openquake/pulls/589","diff_url":"https://github.com/gem/openquake/pull/589.diff","merged_at":null}}