librelist archives

« back to archive

How the signal works

How the signal works

From:
Alex
Date:
2011-05-30 @ 05:33
Hi everyone,
I come up with a signal problem.I want to send a signal in a request, and
return the request immediately.
Then the connected function receives the signal, and sends a email in the
background.
But it seems that the request never returns until the connected function
ends over.
Am i right?
How to do it?
Thanks.

Re: [flask] How the signal works

From:
Ishbir Singh
Date:
2011-05-30 @ 09:02
Hey,

Seems like you want to do stuff asynchronously. Take a look at Flask-Celery,
it is precisely what you require.

http://pypi.python.org/pypi/Flask-Celery

On 30 May 2011 11:03, Alex <gfreezy@gmail.com> wrote:

> Hi everyone,
> I come up with a signal problem.I want to send a signal in a request, and
> return the request immediately.
> Then the connected function receives the signal, and sends a email in the
> background.
> But it seems that the request never returns until the connected function
> ends over.
> Am i right?
> How to do it?
> Thanks.
>
>


-- 
Regards,
Ishbir Singh