[Answered ]-Start listening to kafka in a parallel stream when starting a django project

1👍

Solved the problem in the following way:

if __name__ == "__main__":
    process = subprocess.Popen(['python3', 'kafka_run.py'], stdout=subprocess.PIPE)
    uvicorn.run(app=application, host='0.0.0.0', port=8000)
👤ivg97

Leave a comment