Implement multiprocessing, and try to make webcron more resilient

This commit is contained in:
Kijin Sung 2024-10-10 23:22:42 +09:00
parent 097cecece8
commit 61b9f57196
2 changed files with 57 additions and 5 deletions

View file

@ -178,9 +178,6 @@ class Queue
*/
public static function process(int $timeout): void
{
// Increase the time limit. This may or may not work.
set_time_limit(min(60, $timeout));
// This part will run in a loop until timeout.
$process_start_time = microtime(true);
while (true)