[Dancer-users] do something after sending response

Alex Knowles alexk at moonfruit.com
Fri Aug 12 11:52:35 CEST 2011


On Thu, 2011-08-11 at 17:54 +0100, Nick Knutov wrote:
> Hello all,
> 
> is it possible to run some code after sending response to upstream [and 
> closing socket] with Dancer?
> 
> For example: I want to get request, send response and after closing 
> socket to back-end do some job with big timeouts: write logs, send 
> notifications via emails, etc.
> 

Further to all the other answers.  We use TheSchwartz quite heavily in
our main (non dancer) environment.  It's a little hairy, but a job queue
(not necessarily TheSchwartz) may well be what you want...

a




More information about the Dancer-users mailing list