ezsystems/ezpublish — pull request #236 by jdespatis (2011-12-01 11:25:38+00:00)
Title: New function (imported from ezscriptmonitor) to launch a script in background

This function that can launch a script in background is very handy, from extension/ezscriptmonitor/cronjobs/runscheduledscripts.php

=> Why not moving it to eZPublish API?

That way, a lot of people could use it

Further more, in eZRunCronjobs, it would be possible to add a new method that launches runcrunjobs at once (in order to not wait the next launch of cronjob)

It would also be possible to have a button somewhere in the backend to force the launch of the runcronjobs for example...

And in fact, as far as I'm concerned, I need to add a script to ezscriptmonitor, and launch this script asap, I just can't wait 5 min (if the cron is running every 5 min), I need to launch runcronjobs asap (hence this function that would let it possible)

This method has been put in eZScript, I really don't know if this is the best place...

Do not hesitate to comment this pull !