mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Implement scheduled tasks
This commit is contained in:
parent
2f0ec84cc2
commit
53cd6e807d
7 changed files with 419 additions and 122 deletions
|
|
@ -73,7 +73,7 @@ if (PHP_SAPI === 'cli' && $process_count > 1 && function_exists('pcntl_fork') &&
|
|||
}
|
||||
elseif ($pid == 0)
|
||||
{
|
||||
Rhymix\Framework\Queue::process($timeout);
|
||||
Rhymix\Framework\Queue::process($i, $process_count, $timeout);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
|
@ -96,7 +96,7 @@ if (PHP_SAPI === 'cli' && $process_count > 1 && function_exists('pcntl_fork') &&
|
|||
}
|
||||
else
|
||||
{
|
||||
Rhymix\Framework\Queue::process($timeout);
|
||||
Rhymix\Framework\Queue::process(0, 1, $timeout);
|
||||
}
|
||||
|
||||
// If called over the network, display a simple OK message to indicate success.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue