You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
^CTask was destroyed but it is pending!
task: <Task pending name='Task-4' coro=<QuestCallback.writer() running at /home/blabla/project/backtest/.venv/lib/python3.12/site-packages/cryptofeed/backends/quest.py:27> wait_for=<Future pending cb=[Task.task_wakeup()]>>
backtest-py3.12
Expected behavior
questcallback to close
Operating System:
all
Cryptofeed Version
2.4.0 solution
The while loop from writer method of QuestCallback should be: while self.running:
in place of: while True:
Describe the bug
QuestCallback writer loop never end.
To Reproduce
create an instance of CandlesQuest
then try to run it using loop.run_until_complete
see here what is the right way to use Backends without Feedhandler to store Exchange rest data? #1045 (comment)
Expected behavior
questcallback to close
Operating System:
Cryptofeed Version
solution
The while loop from writer method of QuestCallback should be:
while self.running:
in place of:
while True:
cryptofeed/cryptofeed/backends/quest.py
Line 25 in cac8c97
Like in the ancestror class socket SocketCallback
cryptofeed/cryptofeed/backends/socket.py
Line 75 in cac8c97
The text was updated successfully, but these errors were encountered: