Endless has asked for the wisdom of the Perl Monks concerning the following question:
I recently used Mojolicious and AJAX to create a GUI for a Perl system I use; it works wonderfully, and launches the process. Now I need some general strategy guidance: the process can take hours, sometimes a full day. I built it so that from the command line it prints progress as it goes ("Processed 1 million ... processed 2 million..."). What strategy and technologies can I use to provide a feedback function for the web app? I assume this will require multiple threads, something I have no knowledge about in Perl (and, from what I've heard, they can be scary).
I don't think a progress bar will be ideal; instead a status page would be better, simply stating progress so far, and perhaps average speed (all things I printed to the console before the web GUI). But I'm not sure where to start for an approach to this task.
Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Providing feedback to Web GUI (Mojolicious)
by LanX (Saint) on Nov 16, 2013 at 12:31 UTC | |
Re: Providing feedback to Web GUI (Mojolicious)
by ig (Vicar) on Nov 16, 2013 at 20:05 UTC | |
by Anonymous Monk on Nov 16, 2013 at 23:51 UTC | |
by Anonymous Monk on Nov 20, 2013 at 17:46 UTC | |
by Corion (Patriarch) on Nov 20, 2013 at 17:49 UTC | |
Re: Providing feedback to Web GUI (Mojolicious)
by Anonymous Monk on Nov 17, 2013 at 01:14 UTC | |
Re: Providing feedback to Web GUI (Mojolicious)
by taint (Chaplain) on Nov 16, 2013 at 19:53 UTC |