Skip to content

Commit 4e1bb8f

Browse files
refnodeigalic
authored andcommitted
Add timeout parameter to increase for long time running sql imports
Signed-off-by: refnode <refnode@gmail.com>
1 parent b338635 commit 4e1bb8f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

manifests/db.pp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
$grant = 'ALL',
1010
$sql = '',
1111
$enforce_sql = false,
12-
$ensure = 'present'
12+
$ensure = 'present',
13+
$import_timeout = 300,
1314
) {
1415
#input validation
1516
validate_re($ensure, '^(present|absent)$',
@@ -54,6 +55,7 @@
5455
refreshonly => $refresh,
5556
require => Mysql_grant["${user}@${host}/${table}"],
5657
subscribe => Mysql_database[$dbname],
58+
timeout => $import_timeout,
5759
}
5860
}
5961
}

0 commit comments

Comments
 (0)