Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
3653d291
Commit
3653d291
authored
Feb 10, 2010
by
anarcat
Committed by
anarcat
Feb 10, 2010
Browse files
make overload a real error so it shows up in logs and cascades back up the stack
parent
bcfda276
Changes
1
Hide whitespace changes
Inline
Side-by-side
provision.drush.inc
View file @
3653d291
...
@@ -58,7 +58,7 @@ include_once('provision.path.inc');
...
@@ -58,7 +58,7 @@ include_once('provision.path.inc');
function
provision_drush_init
()
{
function
provision_drush_init
()
{
$load
=
sys_getloadavg
();
$load
=
sys_getloadavg
();
if
(
provision_load_critical
(
$load
))
{
if
(
provision_load_critical
(
$load
))
{
drush_
log
(
dt
(
"load on system too heavy (@load), aborting"
,
array
(
'@load'
=>
join
(
" "
,
$load
))));
drush_
set_error
(
'PROVISION_OVERLOAD'
,
dt
(
"load on system too heavy (@load), aborting"
,
array
(
'@load'
=>
join
(
" "
,
$load
))));
exit
(
1
);
exit
(
1
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment