Merged in feature/PMCORE-2197 (pull request #7502)
feature/PMCORE-2197 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
2174536180
@@ -88,7 +88,7 @@ class ScheduleRunCommand extends BaseCommand
|
||||
return $result;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
})->onOneServer();
|
||||
}
|
||||
});
|
||||
parent::handle();
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user