feature/PMCORE-2197

update
This commit is contained in:
Henry Jordan
2020-10-06 21:00:54 +00:00
parent 777b2f4444
commit 5795d922f5
2 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ class ScheduleRunCommand extends BaseCommand
return $result;
}
return true;
});
})->onOneServer();
}
});
parent::handle();

View File

@@ -265,9 +265,9 @@ class TaskSchedulerBM
$task->startingTime = $service["startingTime"];
$task->endingTime = $service["endingTime"];
if ($win) {
$task->body = 'php "' . PATH_TRUNK . $service["filew"] . '" ' . $service["service"] . ' +w' . config("system.workspace") . ' +force';
$task->body = 'php "' . PATH_TRUNK . $service["filew"] . '" ' . $service["service"] . ' +w' . config("system.workspace") . ' +force +async';
} else {
$task->body = 'su -s /bin/sh -c "php ' . PATH_TRUNK . $service["file"] . " " . $service["service"] . ' +w' . config("system.workspace") . ' +force"';
$task->body = 'su -s /bin/sh -c "php ' . PATH_TRUNK . $service["file"] . " " . $service["service"] . ' +w' . config("system.workspace") . ' +force +async"';
}
$task->expression = $service["expression"];
$task->type = "shell";