mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:50:10 +00:00
Create Core\Process as a base for followup work
This commit is contained in:
parent
90b438e082
commit
2c73377b39
4 changed files with 227 additions and 145 deletions
|
@ -5,6 +5,7 @@
|
|||
namespace Friendica\Core;
|
||||
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Core;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Process;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
@ -1082,7 +1083,9 @@ class Worker
|
|||
|
||||
$args = ['no_cron' => !$do_cron];
|
||||
|
||||
get_app()->proc_run($command, $args);
|
||||
$a = get_app();
|
||||
$process = new Core\Process($a->getLogger(), $a->getMode(), $a->getConfig(), $a->getBasePath());
|
||||
$process->run($command, $args);
|
||||
|
||||
// after spawning we have to remove the flag.
|
||||
if (Config::get('system', 'worker_daemon_mode', false)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue