def UpdateState(self, key, new_state):
    self._OpenSecondaryConnection()

    assert _RunningInThread(self.secondary_thread)
    assert isinstance(new_state, int)

    self.update_cursor.execute('update progress set state=? where id=?',
                               (new_state, key))

    self._MaybeCommit()
(Re)starts a dnsmasq server for a given network.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/bulkloader.py/_ProgressDatabase.UpdateState--crossover with--dataset/ETHPy150Open openstack/nova/nova/network/linux_net.py/restart_dhcp