{"action":"closed","issue":{"url":"https://api.github.com/repos/genouest/biomaj/issues/52","repository_url":"https://api.github.com/repos/genouest/biomaj","labels_url":"https://api.github.com/repos/genouest/biomaj/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/genouest/biomaj/issues/52/comments","events_url":"https://api.github.com/repos/genouest/biomaj/issues/52/events","html_url":"https://github.com/genouest/biomaj/issues/52","id":159369336,"number":52,"title":"Failed to start from a particular task if last update failed","user":{"login":"horkko","id":9282917,"avatar_url":"https://avatars.githubusercontent.com/u/9282917?v=3","gravatar_id":"","url":"https://api.github.com/users/horkko","html_url":"https://github.com/horkko","followers_url":"https://api.github.com/users/horkko/followers","following_url":"https://api.github.com/users/horkko/following{/other_user}","gists_url":"https://api.github.com/users/horkko/gists{/gist_id}","starred_url":"https://api.github.com/users/horkko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horkko/subscriptions","organizations_url":"https://api.github.com/users/horkko/orgs","repos_url":"https://api.github.com/users/horkko/repos","events_url":"https://api.github.com/users/horkko/events{/privacy}","received_events_url":"https://api.github.com/users/horkko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-09T09:54:05Z","updated_at":"2016-06-09T12:30:38Z","closed_at":"2016-06-09T12:30:38Z","body":"Hi,\r\n\r\nI've discovered a little bug when I try to start a postprocess for a bank which failed its last update.\r\nLet's say I have `BLOCKS=A,B,C`. `BLOCKS A` succeeded but `BLOCK B` failed. Then the bank update failed and returned an error. If I then decide to rebuild the `BLOCK B` like:\r\n`biomaj-cli.py --update --bank test --from-task postprocess --release x --task B` it fails saying:\r\n`'C'` (a KeyError).\r\nI've dig into the code and I located the line which throw this exception. It is in `session.py` in method `reload_postprocess_in_order` line 97.\r\n```\r\nfor process in processes:\r\n    copy_postprocess[block][meta][process] = postprocess[block][meta][process]\r\n```\r\nHere `postprocess` does not have key (`block`) `C` because it is not found in MongoDB `session.postprocess`.\r\nCould you have a look at it please?\r\n\r\nThanks\r\n\r\nEmmanuel"}}
{"actor":{"display_login":"horkko"}}