-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a helper to disable process timeouts #8088
Add a helper to disable process timeouts #8088
Conversation
The helper can be included in custom script definitions by calling "Composer\\Config::disableProcessTimeout". Example: { "scripts": { "watch": [ "Composer\\Config::disableProcessTimeout", "vendor/bin/long-running-script --watch" ] } }
But as discussed in #8041, you could just |
Ah well, this is a pretty clever hack, which really doesn't add much code, so 👍 from me. |
Thanks! :) |
@beryllium Would you mind adding this to docs as well ? 😅 |
@sakshamsaxena For sure, just created #8093 for this. |
Do we have an ETA for when this will be launched, @Seldaek? This has been a feature that we've been looking forward to for many months. Thanks |
@Antnee hoping to release friday, sorry it's been so long between minor releases but #life |
That's awesome, thanks @Seldaek |
1.9 is out |
Yes! Thanks @Seldaek! |
This came about because Sculpin's blog skeleton was recently changed to use Composer to manage long running processes like
yarn encore --watch
andsculpin generate --watch
. Shortly thereafter, it was observed that this triggered the 5 minute default Composer timeout.It seemed unwise to set the entire Composer configuration to unlimited timeouts, and I felt that this narrower approach was potentially worthy of being included in Composer itself.
The helper can be included in custom script definitions by calling
"Composer\\Config::disableProcessTimeout"
.Example: