1 May
2013
1 May
'13
2:07 a.m.
On 13-04-30 03:09 AM, Hugues Max wrote:
I would like to launch in background a perl program ( or function who create lot of PDF) from my Dancer APP. and view in web page the log of this program.
I've done a small test, ajax part works well, but if my process backgroup is too long with sleep , nothing works, web browser wait...
What is the best way to do that ?
Maybe something like Dancer::Plugin::GearmanXS to send the long-running job to a Gearman instance, and then have your browser either refresh the page until the job is done or, if you really feel space-age, have a websocket connection (see Dancer::Plugin::WebSocket) to the server to push the results to the client when it's ready? Joy, `/anick