Skip to content

Laravel Executor v2.1.0

Compare
Choose a tag to compare
@ash-jc-allen ash-jc-allen released this 05 Oct 21:34
· 8 commits to master since this release
09fd0c2

Laravel Executor v2.1.0

New Features

Added a timeOut option for the Artisan and external commands (#14)

As of Laravel Executor v2.1.0, you can now explicitly define the timeout for the process running your command. For example, to set the timeout for non-interactive external and Artisan commands to be 30 seconds, you could use the following:

<?php

namespace App\Executor;

use AshAllenDesign\LaravelExecutor\Classes\Executor;

class AppUpdate extends Executor
{
    public function run(): Executor
    {
        return $this->runExternal('composer install', false, 30)->runArtisan('cache:clear', false, 30);
    }
}