cryptofeed datafeed stop automatically
xubinlaile opened this issue · 7 comments
logs example:
2022-08-06 20:50:39,580 : DEBUG : OKX: reading symbol information from https://www.okx.com/api/v5/public/instruments?instType=SPOT
2022-08-06 20:50:39,580 : DEBUG : HTTPSync: requesting data from https://www.okx.com/api/v5/public/instruments?instType=SPOT
2022-08-06 20:50:39,618 : DEBUG : OKX: reading symbol information from https://www.okx.com/api/v5/public/instruments?instType=SWAP
2022-08-06 20:50:39,618 : DEBUG : HTTPSync: requesting data from https://www.okx.com/api/v5/public/instruments?instType=SWAP
2022-08-06 20:50:39,640 : DEBUG : OKX: reading symbol information from https://www.okx.com/api/v5/public/instruments?instType=FUTURES
2022-08-06 20:50:39,641 : DEBUG : HTTPSync: requesting data from https://www.okx.com/api/v5/public/instruments?instType=FUTURES
2022-08-06 20:50:39,669 : DEBUG : OKX: reading symbol information from https://www.okx.com/api/v5/public/instruments?instType=OPTION&uly=BTC-USD
2022-08-06 20:50:39,669 : DEBUG : HTTPSync: requesting data from https://www.okx.com/api/v5/public/instruments?instType=OPTION&uly=BTC-USD
2022-08-06 20:50:39,696 : DEBUG : OKX: reading symbol information from https://www.okx.com/api/v5/public/instruments?instType=OPTION&uly=ETH-USD
2022-08-06 20:50:39,696 : DEBUG : HTTPSync: requesting data from https://www.okx.com/api/v5/public/instruments?instType=OPTION&uly=ETH-USD
2022-08-06 20:50:39,739 : DEBUG : OKX.ws.1: connecting to wss://ws.okx.com:8443/ws/v5/public
2022-08-06 20:50:39,780 : DEBUG : OKX.ws.1: Authenticating with message: {'op': 'login', 'args': [{'apiKey': '', 'passphrase': '', 'timestamp': '1659790239.776', 'sign': '*********'}]}
2022-08-06 20:50:40,781 : DEBUG : OKX: Websocket logged in? 0
2022-08-06 21:20:17,663 : INFO : FH: System Exit received - shutting down
2022-08-06 21:20:17,663 : INFO : FH: shutdown connections handlers in feeds
2022-08-06 21:20:17,663 : INFO : FH: create the tasks to properly shutdown the backends (to flush the local cache)
2022-08-06 21:20:17,663 : INFO : FH: wait 1 backend tasks until termination
2022-08-06 21:20:17,664 : INFO : OKX: feed shutdown starting...
2022-08-06 21:20:17,666 : INFO : OKX.ws.1: terminate the connection handler because not running
2022-08-06 21:20:17,666 : INFO : OKX.ws.1: closed connection 'WebSocketClientProtocol'
2022-08-06 21:20:17,666 : INFO : OKX: feed shutdown completed
2022-08-06 21:20:17,666 : INFO : FH: stop the AsyncIO loop
2022-08-06 21:20:17,666 : INFO : FH: run the AsyncIO event loop one last time
2022-08-06 21:20:17,666 : INFO : FH: cancel the 1 pending tasks
2022-08-06 21:20:17,666 : INFO : FH: run the pending tasks until complete
2022-08-06 21:20:17,667 : INFO : FH: shutdown asynchronous generators
2022-08-06 21:20:17,667 : INFO : FH: close the AsyncIO loop
2022-08-06 21:20:17,672 : INFO : FH: leaving run()
it says right there:
"2022-08-06 21:20:17,663 : INFO : FH: System Exit received - shutting down"
So something is shutting down your application
but there is no error log shows, how could this happen?
its not an error. someone or something told your application to exit, so it did
how can I reconnect when this happen?
your program has been killed, youd have to restart your program
how can dug this situation when there is no any detail log?
I have face the "System Exit received", but I do not know what application/actions kills this cryptofeed instance.