librelist archives

« back to archive

Problem using flask with signals

Problem using flask with signals

From:
Gabriel Jordão
Date:
2012-11-01 @ 19:12
Hi,

I'm experiencing some issues with flask using signals(blinker).

All requests share the same "namespace", so, with many concurrent requests,
I can't tell from which request the message was sent.

I can't use flask.g because I need to send messages when I make async calls
(with gevent). The request context is not available at this point.

Ideas for solving it?

-- 
*
*
*Gabriel Jordão*

T (71) 3494-3514
C (71) 8780-0519
gabrielpjordao@jusbrasil.com.br
www.jusbrasil.com.br