Hi everyone, i am trying to access a shared context queue from a custom process:
app = Sanic("Server")
def subprocess():
while True:
msg = app.shared_ctx.vjQueue.get()
...
@app.main_process_ready
async def launchProcesses(app):
app.manager.manage("subprocess", subprocess)
@app.main_process_start
async def createDicts(app):
app.shared_ctx.vjQueue= Queue()
however, this results in AttributeError: 'SharedContext' object has no attribute 'vjQueue'
. Does the subprocess not have access to the shared context or what am i doing wrong?