Composer: Custom command script stops with ProcessTimedOutException / exceeded the timeout of 300

Created on 22 Nov 2014  路  2Comments  路  Source: composer/composer

Using Composer version 1.0-dev (ffffab37a294f3383c812d0329623f0a4ba45387).

A custom command is added and works fine until the point it stops with a ProcessTimedOutException

    "scripts":{
        "phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist"
    }
...........................................I................ 2580 / 2750 ( 93%)
.....

[Symfony\Component\Process\Exception\ProcessTimedOutException]
 The process "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist" exceeded the timeout of 300 seconds.

Doing something like export COMPOSER_PROCESS_TIMEOUT=600 as proposed by [0] is not feasible and therefore an option within the composer.json file should be more useful to avoid having an user to manually change some mystic global setting.

[0] http://stackoverflow.com/questions/18917768/why-composer-install-timeouts-after-300-seconds

Most helpful comment

Set process-timout config to 0 in your root composer.json (https://getcomposer.org/doc/04-schema.md#config).

All 2 comments

Set process-timout config to 0 in your root composer.json (https://getcomposer.org/doc/04-schema.md#config).

Thanks

Was this page helpful?
0 / 5 - 0 ratings