)]}'
{"ironic/conductor/base_manager.py":[{"author":{"_account_id":13689,"name":"Hironori Shiina","email":"Hironori.Shiina@fujitsu.com","username":"shiina"},"change_message_id":"56f95a1bd80c57eb1c2f20423cd50970b9d71da9","unresolved":false,"context_lines":[{"line_number":242,"context_line":"                               last_error\u003dlast_error)"},{"line_number":243,"context_line":""},{"line_number":244,"context_line":"    def _collect_periodic_tasks(self, admin_context):"},{"line_number":245,"context_line":"        \"\"\"Collect driver-specific periodic tasks."},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"        Conductor periodic tasks accept context argument, driver periodic"},{"line_number":248,"context_line":"        tasks accept this manager and context. We have to ensure that the"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_ab4e2594","line":245,"range":{"start_line":245,"start_character":19,"end_line":245,"end_character":34},"updated":"2018-04-25 06:50:35.000000000","message":"nit: Conductor periodic tasks are also collected.","commit_id":"7ead2067fc392426dae74d79a1f0e9605fee41b0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"53d7c2613d039962e34e2c20ca0acbd6c5443dc8","unresolved":false,"context_lines":[{"line_number":244,"context_line":"    def _collect_periodic_tasks(self, admin_context):"},{"line_number":245,"context_line":"        \"\"\"Collect driver-specific periodic tasks."},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"        Conductor periodic tasks accept context argument, driver periodic"},{"line_number":248,"context_line":"        tasks accept this manager and context. We have to ensure that the"},{"line_number":249,"context_line":"        same driver interface class is not traversed twice, otherwise"},{"line_number":250,"context_line":"        we\u0027ll have several instances of the same task."},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"        :param admin_context: Administrator context to pass to tasks."},{"line_number":253,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_825317e2","line":250,"range":{"start_line":247,"start_character":8,"end_line":250,"end_character":54},"updated":"2018-04-24 13:09:11.000000000","message":"I\u0027m not sure if this really makes sense to detail like this, but *shrugs*.","commit_id":"7ead2067fc392426dae74d79a1f0e9605fee41b0"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c8b9f89d12f8a8f9d8617983582e7f3bc899abb3","unresolved":false,"context_lines":[{"line_number":244,"context_line":"    def _collect_periodic_tasks(self, admin_context):"},{"line_number":245,"context_line":"        \"\"\"Collect driver-specific periodic tasks."},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"        Conductor periodic tasks accept context argument, driver periodic"},{"line_number":248,"context_line":"        tasks accept this manager and context. We have to ensure that the"},{"line_number":249,"context_line":"        same driver interface class is not traversed twice, otherwise"},{"line_number":250,"context_line":"        we\u0027ll have several instances of the same task."},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"        :param admin_context: Administrator context to pass to tasks."},{"line_number":253,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_c2d34f03","line":250,"range":{"start_line":247,"start_character":8,"end_line":250,"end_character":54},"in_reply_to":"9f6a8fd7_825317e2","updated":"2018-04-24 13:14:56.000000000","message":"This is a copy-paste from the comment","commit_id":"7ead2067fc392426dae74d79a1f0e9605fee41b0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"53d7c2613d039962e34e2c20ca0acbd6c5443dc8","unresolved":false,"context_lines":[{"line_number":279,"context_line":"        for ifaces in driver_factory.all_interfaces().values():"},{"line_number":280,"context_line":"            for iface in ifaces.values():"},{"line_number":281,"context_line":"                _collect_from(iface, args\u003d(self, admin_context))"},{"line_number":282,"context_line":"        # TODO(dtantsur): allow periodics on hardware types themselves?"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"        # Finally, collect tasks from interfaces of classic drivers, since they"},{"line_number":285,"context_line":"        # are not necessary registered as new-style hardware interfaces."}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_a2673bb7","line":282,"updated":"2018-04-24 13:09:11.000000000","message":"I seem to remember discussing this...a long long time ago.. and I think it was hotly contested. I thought the consensus was not to, and to keep it on the interface level.","commit_id":"7ead2067fc392426dae74d79a1f0e9605fee41b0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"53d7c2613d039962e34e2c20ca0acbd6c5443dc8","unresolved":false,"context_lines":[{"line_number":288,"context_line":"                iface \u003d getattr(driver_obj, iface_name, None)"},{"line_number":289,"context_line":"                _collect_from(iface, args\u003d(self, admin_context))"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"        if len(periodic_task_callables) \u003e CONF.conductor.workers_pool_size:"},{"line_number":292,"context_line":"            LOG.warning(\u0027This conductor has %(tasks)d periodic tasks \u0027"},{"line_number":293,"context_line":"                        \u0027enabled, but only %(workers)d task workers \u0027"},{"line_number":294,"context_line":"                        \u0027allowed by [conductor]workers_pool_size option\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_6290434b","line":291,"range":{"start_line":291,"start_character":40,"end_line":291,"end_character":41},"updated":"2018-04-24 13:09:11.000000000","message":"Would it not make sense to \u003e\u003d ?","commit_id":"7ead2067fc392426dae74d79a1f0e9605fee41b0"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"c8b9f89d12f8a8f9d8617983582e7f3bc899abb3","unresolved":false,"context_lines":[{"line_number":288,"context_line":"                iface \u003d getattr(driver_obj, iface_name, None)"},{"line_number":289,"context_line":"                _collect_from(iface, args\u003d(self, admin_context))"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"        if len(periodic_task_callables) \u003e CONF.conductor.workers_pool_size:"},{"line_number":292,"context_line":"            LOG.warning(\u0027This conductor has %(tasks)d periodic tasks \u0027"},{"line_number":293,"context_line":"                        \u0027enabled, but only %(workers)d task workers \u0027"},{"line_number":294,"context_line":"                        \u0027allowed by [conductor]workers_pool_size option\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_c2fcaf71","line":291,"range":{"start_line":291,"start_character":40,"end_line":291,"end_character":41},"in_reply_to":"9f6a8fd7_6290434b","updated":"2018-04-24 13:14:56.000000000","message":"maybe, but it\u0027s again a copy-paste. I had to create a new function since init_host became too complex for pep8","commit_id":"7ead2067fc392426dae74d79a1f0e9605fee41b0"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"53d7c2613d039962e34e2c20ca0acbd6c5443dc8","unresolved":false,"context_lines":[{"line_number":293,"context_line":"                        \u0027enabled, but only %(workers)d task workers \u0027"},{"line_number":294,"context_line":"                        \u0027allowed by [conductor]workers_pool_size option\u0027,"},{"line_number":295,"context_line":"                        {\u0027tasks\u0027: len(periodic_task_callables),"},{"line_number":296,"context_line":"                         \u0027workers\u0027: CONF.conductor.workers_pool_size})"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"        self._periodic_tasks \u003d periodics.PeriodicWorker("},{"line_number":299,"context_line":"            periodic_task_callables,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f6a8fd7_a2989b74","line":296,"updated":"2018-04-24 13:09:11.000000000","message":"nit: It would be kind of good to have a test that tests that we at least call LOG.warning if the condition is met, such that we reduce the chance of it being removed one day.","commit_id":"7ead2067fc392426dae74d79a1f0e9605fee41b0"}]}
