- Removed time limit on cronard run script
This commit is contained in:
1 parent
78daf88d67
commit
907b9c8fc4
1 file changed
+2
@@ -52,6 +52,8 @@ trait CronardTrait {
|
|||||||
$this->crontabs[] = [
|
$this->crontabs[] = [
|
||||||
'cron' => $task['annotation']->cron,
|
'cron' => $task['annotation']->cron,
|
||||||
'callback' => function(ServerRequestInterface $request, ResponseInterface $response, ContainerInterface $container) use ($task, & $launched) {
|
'callback' => function(ServerRequestInterface $request, ResponseInterface $response, ContainerInterface $container) use ($task, & $launched) {
|
||||||
|
set_time_limit(0);
|
||||||
|
|
||||||
if ( $task['annotation']->method ?? false ) {
|
if ( $task['annotation']->method ?? false ) {
|
||||||
$request = $request->withMethod($task['annotation']->method);
|
$request = $request->withMethod($task['annotation']->method);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user