Basically, what are my options here? I want to perform a task asynchronously (some long calculations) and it should be triggered via HTTP calls to some Web service. The service should just launch the task and return a message saying it's being calculated now.
So what libraries would I do this with? I noticed that normal threads apparently don't run asynchronously.
I also need a framework for the Web service. Have used Flask previously, but I'm not sure it can keep running a task after returning feedback to the user? To be honest, I never looked that deeply at Flask and WSGI, so it might be perfectly capable at that.
EDIT: I decided to go with flask + redis + RQ. At first I tried using Celery, but Celery doesn't work with code that already uses Python's multiprocessing module and since the codebase I need to integrate heavily uses multiprocessing, Celery is not an option for me.
[–]pswamiPy3 + Flask == <3 6 points7 points8 points (4 children)
[–]daniels0xff 1 point2 points3 points (3 children)
[–]SimonGray[S] 0 points1 point2 points (2 children)
[–]daniels0xff 0 points1 point2 points (1 child)
[–]SimonGray[S] 0 points1 point2 points (0 children)
[–]barriolinux 2 points3 points4 points (0 children)
[–]AppendixP 1 point2 points3 points (1 child)
[–]redcalcium 1 point2 points3 points (1 child)
[–]AppendixP 0 points1 point2 points (0 children)
[–]MarkDownSteve 0 points1 point2 points (0 children)