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)
Source:stackexchange.com