Python flask - builtins.ValueError: signal only works in main thread

pssantosh
Hi, I was trying to implement a web app using the ticker information. However I am using it as a just a function it all works fine but when I try to run the flask application, it throws the below error. Can anyone help me on how to handle the subscription of tick data in the web app. Appreciate the help.

handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
builtins.ValueError: signal only works in main thread
Tagged:
Sign In or Register to comment.