)]}'
{"mistral/engine/task_handler.py":[{"author":{"_account_id":7700,"name":"Nikolay Mahotkin","email":"nikolay.makhotkin@gmail.com","username":"nmakhotkin"},"change_message_id":"bbbcd5f38c0a8e239d9fb9b6cd9441c90f4ed28e","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    if retry_task_policy:"},{"line_number":187,"context_line":"        retry_task_policy[\u0027retry_no\u0027] \u003d 0"},{"line_number":188,"context_line":"        task_ex.runtime_context \u003d retry_task_policy"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"def force_fail_task(task_ex, msg):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_23273615","line":188,"range":{"start_line":188,"start_character":8,"end_line":188,"end_character":51},"updated":"2018-05-20 19:44:01.000000000","message":"AFAIK there should be something like:\n\n    task_ex.runtime_context[\u0027retry_task_policy\u0027] \u003d retry_task_policy\n\nOtherwise retry + with-items and then rerun won\u0027t work.\n\nPlease correct me if I wrong.","commit_id":"ae283d70fbe6d438c3a08d46510f327723d7da1c"},{"author":{"_account_id":27008,"name":"Vitalii Solodilov","email":"Mcdkr@yandex.ru","username":"mcdoker18"},"change_message_id":"046a515d6301f3d150e423d9585e576a969214ff","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    if retry_task_policy:"},{"line_number":187,"context_line":"        retry_task_policy[\u0027retry_no\u0027] \u003d 0"},{"line_number":188,"context_line":"        task_ex.runtime_context \u003d retry_task_policy"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"def force_fail_task(task_ex, msg):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_f15348e1","line":188,"range":{"start_line":188,"start_character":8,"end_line":188,"end_character":51},"in_reply_to":"5f7c97a3_23273615","updated":"2018-05-21 00:05:07.000000000","message":"Thanks for catching!\nYep, you are right. I missed the key.","commit_id":"ae283d70fbe6d438c3a08d46510f327723d7da1c"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"f8064a4966067f4d20a5c8e9a7776b5cb04a7c1e","unresolved":false,"context_lines":[{"line_number":179,"context_line":"        return"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"def refresh_runtime_context(task_ex):"},{"line_number":183,"context_line":"    runtime_context \u003d task_ex.runtime_context or {}"},{"line_number":184,"context_line":"    retry_task_policy \u003d runtime_context.get(\u0027retry_task_policy\u0027)"},{"line_number":185,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_c8ae4980","line":182,"range":{"start_line":182,"start_character":4,"end_line":182,"end_character":27},"updated":"2018-05-28 04:46:24.000000000","message":"I suggestion that we move this method to RetryPolicy class as a class member because, in fact, it\u0027s related only with the retry policy implementation things. It\u0027s weird to see it here where it\u0027s too high level for this type of manipulations with the task runtime context.If we ever have a situation when we\u0027ll need to add something else we\u0027ll refactor and find a better home for this method.","commit_id":"45a212854f724b1a0d23bdac11d75630e417fbc3"}]}
