4 ms·
If you want to know: just checked the one project where I did a long running PHP-process. It is a job scheduler which takes jobs from a Redis queue and execute
by Lennie 13y ago
If you want to know: just checked the one project where I did a long running PHP-process.
It is a job scheduler which takes jobs from a Redis queue and executes it.
It does fork a new process for 1 type of task (image resizing in this case) to make sure it doesn't leak memory.
It also reuses these forked processes so it doesn't need to fork for every task.
It was last started on Jan. 2013 (because of maintenance) and still running fine.
The reason ? I didn't want to introduce an extra language for project for which all the server code was already written in PHP.
So if it fits the task, you can do it.
- toast0 13y agoDuly noted, will not be so negative on long running processes. :)