diff --git a/golem/client.py b/golem/client.py index fa039b1b35..5ce9e9260a 100644 --- a/golem/client.py +++ b/golem/client.py @@ -120,7 +120,7 @@ def __init__( # noqa pylint: disable=too-many-arguments,too-many-locals self.config_approver = ConfigApprover(self.config_desc) if self.config_desc.in_shutdown: - self.update_setting('in_shutdown', False) + self.update_setting('in_shutdown', 0) logger.info( 'Client %s, datadir: %s', diff --git a/golem/node.py b/golem/node.py index 7162038da8..4352630184 100644 --- a/golem/node.py +++ b/golem/node.py @@ -374,7 +374,7 @@ def graceful_shutdown(self) -> ShutdownResponse: # is in shutdown? turn off as toggle if self._config_desc.in_shutdown: - self.client.update_setting('in_shutdown', False) + self.client.update_setting('in_shutdown', 0) logger.info('Turning off shutdown mode') return ShutdownResponse.off @@ -386,7 +386,7 @@ def graceful_shutdown(self) -> ShutdownResponse: # configure in_shutdown logger.info('Enabling shutdown mode, no more tasks can be started') - self.client.update_setting('in_shutdown', True) + self.client.update_setting('in_shutdown', 1) # subscribe to events