librelist archives

« back to archive

Problem using flask with signals

Problem using flask with signals

Gabriel Jordão
2012-11-01 @ 19:12

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