Skip to content

Commit 1ede058

Browse files
authored
Fix timeout for heavy tasks in provision recipe (#2752)
1 parent 4f84ee1 commit 1ede058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipe/provision.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100

101101
desc('Upgrades all packages');
102102
task('provision:upgrade', function () {
103-
run('apt-get upgrade -y', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive']]);
103+
run('apt-get upgrade -y', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive'], 'timeout' => 900]);
104104
})
105105
->oncePerNode()
106106
->verbose();
@@ -133,7 +133,7 @@
133133
'uuid-runtime',
134134
'whois',
135135
];
136-
run('apt-get install -y ' . implode(' ', $packages), ['env' => ['DEBIAN_FRONTEND' => 'noninteractive']]);
136+
run('apt-get install -y ' . implode(' ', $packages), ['env' => ['DEBIAN_FRONTEND' => 'noninteractive'], 'timeout' => 900]);
137137
})
138138
->verbose()
139139
->oncePerNode();

0 commit comments

Comments
 (0)