ProcessTimedOutException during package installation in Composer
25K reputation · 10 Mar 2020, 07:37 UTC
Composer uses a process-timeout configuration to prevent hanging operations during package downloads or script executions. When a process exceeds this limit, the system triggers a ProcessTimedOutException to halt the operation.
While the timeout prevents orphaned processes on build servers, the behavior regarding the local cache directory remains unclear. Specifically, when a download is interrupted by this exception, the state of the partially downloaded archive in the cache is not explicitly defined.
Does Composer automatically purge incomplete archives from the cache after a ProcessTimedOutException occurs? If not, how does the manager handle these partial files during subsequent installation attempts?