tdex-network / tdex-daemon

Go implementation of the TDEX Beta Daemon
https://tdex.network
MIT License
11 stars 13 forks source link

Daemon process hangs on error #651

Closed sekulicd closed 1 year ago

sekulicd commented 1 year ago

Using bellow env vars will cause error thrown by TdexConnectService: TDEX_BASE_ASSET=5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225 TDEX_CRAWL_INTERVAL=50000000000 TDEX_ENABLE_PROFILER=true TDEX_EXPLORER_ENDPOINT=http://127.0.0.1:3001 TDEX_LOG_LEVEL=5 TDEX_NETWORK=regtest TDEX_CONNECT_PROTO=http

I was expecting daemon to shut down but process is hanging, PSB:

Screen Shot 2022-10-10 at 12 51 14
tiero commented 1 year ago

Could be the profiler failing to shutdown gracefully?

sekulicd commented 1 year ago

Could be the profiler failing to shutdown gracefully?

I am actually not sure what is hanging in the background and why. However, this makes sure process is killed.

altafan commented 1 year ago

The reason has been explained here. Soon crawler/bc listener will be dropped with wallet detachment (WIP, almost ready) therefore this can be closed.