Merge pull request #886 from freqtrade/feature/reload-conf

Reload bot config without restarting
This commit is contained in:
Janne Sinivirta
2018-06-11 10:47:00 +03:00
committed by GitHub
9 changed files with 150 additions and 21 deletions

View File

@@ -76,17 +76,14 @@ class FreqtradeBot(object):
else:
self.state = State.STOPPED
def clean(self) -> bool:
def cleanup(self) -> None:
"""
Cleanup the application state und finish all pending tasks
Cleanup pending resources on an already stopped bot
:return: None
"""
self.rpc.send_msg('*Status:* `Stopping trader...`')
logger.info('Stopping trader and cleaning up modules...')
self.state = State.STOPPED
logger.info('Cleaning up modules ...')
self.rpc.cleanup()
persistence.cleanup()
return True
def worker(self, old_state: State = None) -> State:
"""