12 Aug
2011
12 Aug
'11
9:52 a.m.
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