)]}'
{"oslo_service/tests/test_threadgroup.py":[{"author":{"_account_id":22623,"name":"Erik Olof Gunnar Andersson","email":"eandersson@blizzard.com","username":"eoandersson"},"change_message_id":"5e4227e9145266c0db5aafff3a172742f18558c5","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        periodic_interval_max \u003d 1"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"        timer \u003d self.tg.add_dynamic_timer_with_kwargs("},{"line_number":191,"context_line":"            callback_mock, periodic_interval_max, initial_delay,"},{"line_number":192,"context_line":"            kwarg1\u003d\u0027kwarg1\u0027)"},{"line_number":193,"context_line":"        self.assertEqual(1, len(self.tg.timers))"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_a6142fea","line":191,"updated":"2018-04-13 05:23:51.000000000","message":"Is there a reason why we are not setting stop_on_exception to False here, like we do in test_add_and_remove_timer_with_kwargs?\n\nMight be worth adding tests both with the new variable set to True and False?","commit_id":"fd0e058d5d585182b6a5ee504d9baa351d4ff083"},{"author":{"_account_id":27224,"name":"Duc Truong","email":"duc.openstack@gmail.com","username":"dtruong2"},"change_message_id":"a2afcf133b34318c45dae6aae167445549eabbcb","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        periodic_interval_max \u003d 1"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"        timer \u003d self.tg.add_dynamic_timer_with_kwargs("},{"line_number":191,"context_line":"            callback_mock, periodic_interval_max, initial_delay,"},{"line_number":192,"context_line":"            kwarg1\u003d\u0027kwarg1\u0027)"},{"line_number":193,"context_line":"        self.assertEqual(1, len(self.tg.timers))"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_f82cf402","line":191,"in_reply_to":"bf659307_a6142fea","updated":"2018-04-13 16:37:27.000000000","message":"I agree.  I will rework the test cases.","commit_id":"fd0e058d5d585182b6a5ee504d9baa351d4ff083"},{"author":{"_account_id":22623,"name":"Erik Olof Gunnar Andersson","email":"eandersson@blizzard.com","username":"eoandersson"},"change_message_id":"5e4227e9145266c0db5aafff3a172742f18558c5","unresolved":false,"context_lines":[{"line_number":225,"context_line":"        initial_delay \u003d 1"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"        timer \u003d self.tg.add_timer_with_kwargs(interval, callback_mock,"},{"line_number":228,"context_line":"                                              initial_delay, False,"},{"line_number":229,"context_line":"                                              kwarg1\u003d\u0027kwarg1\u0027)"},{"line_number":230,"context_line":"        self.assertEqual(1, len(self.tg.timers))"},{"line_number":231,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"bf659307_86000bad","line":228,"updated":"2018-04-13 05:23:51.000000000","message":"Might be worth naming the boolean, as it\u0027s unclear what it does at the moment.\n\u003estop_on_exception\u003dFalse","commit_id":"fd0e058d5d585182b6a5ee504d9baa351d4ff083"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"71d3736e228ac9fe4944b49044e3ad774dfc2229","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            mock_init.reset_mock()"},{"line_number":200,"context_line":"            mock_start.reset_mock()"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"            # add timer with stop_on_exception as unamed argument"},{"line_number":203,"context_line":"            self.tg.add_dynamic_timer_with_kwargs("},{"line_number":204,"context_line":"                foo, initial_delay, periodic_interval_max,"},{"line_number":205,"context_line":"                stop_on_exception_value, kwarg1\u003d\u0027kwarg1\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9f6a8fd7_150295b5","line":202,"range":{"start_line":202,"start_character":50,"end_line":202,"end_character":56},"updated":"2018-04-16 16:31:00.000000000","message":"*unnamed","commit_id":"5ce17f7866ca02a11becfa0e86f6f2aa451ab6eb"}],"oslo_service/threadgroup.py":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"eac296653df70e1a01b5e8080a25a71d762867e9","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def add_dynamic_timer_with_kwargs(self, callback, initial_delay\u003dNone,"},{"line_number":87,"context_line":"                                      periodic_interval_max\u003dNone,"},{"line_number":88,"context_line":"                                      stop_on_exception\u003dTrue, **kwargs):"},{"line_number":89,"context_line":"        timer \u003d loopingcall.DynamicLoopingCall(callback, **kwargs)"},{"line_number":90,"context_line":"        timer.start(initial_delay\u003dinitial_delay,"},{"line_number":91,"context_line":"                    periodic_interval_max\u003dperiodic_interval_max,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_c16c759e","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":62},"updated":"2018-05-03 09:57:38.000000000","message":"Why can\u0027t we just add this to the existing \u0027add_dynamic_timer\u0027 function?","commit_id":"5ce17f7866ca02a11becfa0e86f6f2aa451ab6eb"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"d5a6fd2f1f311f023d83fe889ec0f49fe9c190c2","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def add_dynamic_timer_with_kwargs(self, callback, initial_delay\u003dNone,"},{"line_number":87,"context_line":"                                      periodic_interval_max\u003dNone,"},{"line_number":88,"context_line":"                                      stop_on_exception\u003dTrue, **kwargs):"},{"line_number":89,"context_line":"        timer \u003d loopingcall.DynamicLoopingCall(callback, **kwargs)"},{"line_number":90,"context_line":"        timer.start(initial_delay\u003dinitial_delay,"},{"line_number":91,"context_line":"                    periodic_interval_max\u003dperiodic_interval_max,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_a1d7f923","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":62},"in_reply_to":"5f7c97a3_41270566","updated":"2018-05-03 10:01:30.000000000","message":"You could also do the following to avoid adding a new function:\n\n  kwargs.pop(\u0027stop_on_exception\u0027, True)\n\nI\u0027d prefer this massively, unless there\u0027s a clear reason not to? If you do this, we might need a reno or a docstring with a \u0027versionchanged\u0027 directive included","commit_id":"5ce17f7866ca02a11becfa0e86f6f2aa451ab6eb"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"d3d583644435ffa21f170e2bdaee6e075409c6f4","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def add_dynamic_timer_with_kwargs(self, callback, initial_delay\u003dNone,"},{"line_number":87,"context_line":"                                      periodic_interval_max\u003dNone,"},{"line_number":88,"context_line":"                                      stop_on_exception\u003dTrue, **kwargs):"},{"line_number":89,"context_line":"        timer \u003d loopingcall.DynamicLoopingCall(callback, **kwargs)"},{"line_number":90,"context_line":"        timer.start(initial_delay\u003dinitial_delay,"},{"line_number":91,"context_line":"                    periodic_interval_max\u003dperiodic_interval_max,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_3129c939","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":62},"in_reply_to":"5f7c97a3_68f0c791","updated":"2018-10-08 10:34:26.000000000","message":"\u003e I did consider passing in stop_on_exception thru kwargs, but it\n \u003e feels like a hack.  The client code calling add_dynamic_timer would\n \u003e look confusion because stop_on_exception is passed in along side\n \u003e the other function parameters.\n \u003e \n \u003e But I do see your point that having two functions that do\n \u003e essentially the same thing is not ideal.  The original\n \u003e add_dynamic_timer should be deprecated in the future in favor of\n \u003e the new add_dynamic_timer_with_kwargs.\n\nCould you add a check to \u0027add_dynamic_timer\u0027 to see if \u0027args\u0027 is set and raise a deprecation warning, if so. I\u0027m +2 after that. When we finally switch to Python 3, we can/should make this a kwarg-only function [1]\n\n[1] https://www.python.org/dev/peps/pep-3102/","commit_id":"5ce17f7866ca02a11becfa0e86f6f2aa451ab6eb"},{"author":{"_account_id":4257,"name":"Zane Bitter","email":"zbitter@redhat.com","username":"zaneb"},"change_message_id":"a1054b586162eb3dd76975bf098ef7c23c934af2","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def add_dynamic_timer_with_kwargs(self, callback, initial_delay\u003dNone,"},{"line_number":87,"context_line":"                                      periodic_interval_max\u003dNone,"},{"line_number":88,"context_line":"                                      stop_on_exception\u003dTrue, **kwargs):"},{"line_number":89,"context_line":"        timer \u003d loopingcall.DynamicLoopingCall(callback, **kwargs)"},{"line_number":90,"context_line":"        timer.start(initial_delay\u003dinitial_delay,"},{"line_number":91,"context_line":"                    periodic_interval_max\u003dperiodic_interval_max,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_5aa0a790","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":62},"in_reply_to":"5f7c97a3_68f0c791","updated":"2018-05-29 20:17:52.000000000","message":"Another option would be to add a function add_dynamic_timer_never_stop() that does the same thing as add_dynamic_timer() but passes stop_on_exception\u003dFalse instead of True.\n\nReally all of the options are horrible :/","commit_id":"5ce17f7866ca02a11becfa0e86f6f2aa451ab6eb"},{"author":{"_account_id":27224,"name":"Duc Truong","email":"duc.openstack@gmail.com","username":"dtruong2"},"change_message_id":"320f50dc01efc550c008e6e5b2950b298a29bade","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def add_dynamic_timer_with_kwargs(self, callback, initial_delay\u003dNone,"},{"line_number":87,"context_line":"                                      periodic_interval_max\u003dNone,"},{"line_number":88,"context_line":"                                      stop_on_exception\u003dTrue, **kwargs):"},{"line_number":89,"context_line":"        timer \u003d loopingcall.DynamicLoopingCall(callback, **kwargs)"},{"line_number":90,"context_line":"        timer.start(initial_delay\u003dinitial_delay,"},{"line_number":91,"context_line":"                    periodic_interval_max\u003dperiodic_interval_max,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_68f0c791","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":62},"in_reply_to":"5f7c97a3_a1d7f923","updated":"2018-05-04 18:37:19.000000000","message":"I did consider passing in stop_on_exception thru kwargs, but it feels like a hack.  The client code calling add_dynamic_timer would look confusion because stop_on_exception is passed in along side the other function parameters.\n\nBut I do see your point that having two functions that do essentially the same thing is not ideal.  The original add_dynamic_timer should be deprecated in the future in favor of the new add_dynamic_timer_with_kwargs.","commit_id":"5ce17f7866ca02a11becfa0e86f6f2aa451ab6eb"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"6402544eceb41f2da745109b98bc17badbef93df","unresolved":false,"context_lines":[{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def add_dynamic_timer_with_kwargs(self, callback, initial_delay\u003dNone,"},{"line_number":87,"context_line":"                                      periodic_interval_max\u003dNone,"},{"line_number":88,"context_line":"                                      stop_on_exception\u003dTrue, **kwargs):"},{"line_number":89,"context_line":"        timer \u003d loopingcall.DynamicLoopingCall(callback, **kwargs)"},{"line_number":90,"context_line":"        timer.start(initial_delay\u003dinitial_delay,"},{"line_number":91,"context_line":"                    periodic_interval_max\u003dperiodic_interval_max,"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_41270566","line":88,"range":{"start_line":88,"start_character":38,"end_line":88,"end_character":62},"in_reply_to":"5f7c97a3_c16c759e","updated":"2018-05-03 09:59:21.000000000","message":"Right, I see the issue now. I wonder if we should check if \u0027args\u0027 is set in the above and issues a deprecated warning in order to allow us to unify these in the future?","commit_id":"5ce17f7866ca02a11becfa0e86f6f2aa451ab6eb"}],"releasenotes/notes/timer-stop_on_exception-9f21d7c4d6d1b0d9.yaml":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"d00c13ca3688f26a9db4daa6d5b2adabee53c393","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    The ThreadGroup add_timer_args() and add_dynamic_timer_args() methods now"},{"line_number":5,"context_line":"    support passing a stop_on_exception\u003dFalse argument to allow the timer to"},{"line_number":6,"context_line":"    keep running even when an exception is raised by the callback function."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_73ce055a","line":4,"range":{"start_line":4,"start_character":8,"end_line":4,"end_character":19},"updated":"2018-12-19 12:32:57.000000000","message":"``literal``","commit_id":"48c51fe9cd74d75125d4ee2541fe8a8d5e7462c8"}]}
