I have a Python Web App defined using connexion[swagger-ui]
, on my my_app.py
file:
if __name__ == '__main__':
# run our standalone gevent server
application.run(server='gevent', port=8080)
Now, I have another python file, test.py
that is always calling an API in order to get some data:
def f():
while True:
... # Call API and handles data
Both on the same project. Now, I was trying some approaches as multiprocessing package, to have those tasks running without blocking each other, but without success. Is there any suggestion or best approach to implement this?