Subject: | add way to handle long running requests (cleanup handlers probably) |
My company is currently converting its web apps from using
apache/mod_perl to Plack and Starman. Most things are going well, but
we really need a way to trigger long running processes via our apps.
When using apache/mod_perl, for certain long processes we would register
a code reference to run in the cleanup handler. The long running
process would then record progress to our database, and another part of
the application could monitor things by querying the database and
sending ajax requests to get updates.
So now that we are converting to starman we have to figure out a way to
replace this. It seems to have been requested before, for example there
is this page: https://github.com/plack/psgi-specs/issues/18.
But from what I can tell there is no current feature to support cleanup,
or actions to take place after a response is sent back to the client
from the server. It would be great if this feature could be added, and
my company would probably be willing to sponsor the development of such
a feature if it could be done fairly soon.
Thanks,
Rob Messer