I am interested in starting processes after a web request, or perhaps opening a new process after the completion of the initial thread.
I would prefer not to use cron because of the nature of the tasks I perform and how often they need to be run, waiting for a minute to update is not an option.
I am considering several ways to do this:
1) Calling a page in javascript that starts the process and returns immediately and then starts the tasks after, for example ajax ('/run_jobs.php? Job = 123') .... you get the idea
2) The completion of a new thread after completion of the thread; those. output_page (); new thread (); run_job (123); Output();
Anyone have ideas on this topic or experience with this.
source
share