python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
LIGHTGBM pickle output not working with multiple SANIC workers (>1) but working with single worker
I am trying to load machine learning model output with Sanic. I have loaded the output in the main method(defined globally). It works fine when I set sanic worker as 1 but not not working with multipl...
Pratiksha
Votes: 0
Answers: 1
IB_insync - Sanic error after one successful order preventing any further orders
I'm writing an API using ib_insync, Sanic and ngrok to forward webhook signals from Tradingview onto Interactive Brokers. It works on only the first attempt and the following error is thrown preventin...
needfulmeerkat41954
Votes: 0
Answers: 6
Unit test a listener in Sanic without starting the app server
Assuming I have this listener defined in my Sanic app:
@app.before_server_start
async def db_setup(*args):
# ... set up the DB as I wish for the app
If I want to unit test this function (with pyt...
Chris
Votes: 0
Answers: 1