We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8317a17 commit 7814cb8Copy full SHA for 7814cb8
index.js
@@ -39,11 +39,15 @@ class DockerExecutor extends Executor {
39
this.docker = new Docker(options.docker);
40
this.launchVersion = options.launchVersion || 'stable';
41
this.prefix = options.prefix || '';
42
- this.breaker = new Fusebox((obj, cb) => obj.func(cb), hoek.applyToDefaults({
+
43
+ const breakerOptions = hoek.applyToDefaults({
44
breaker: {
- timeout: 5 * 60 * 1000 // Default to 5 minute timeout
45
+ maxFailures: 10,
46
+ timeout: 5 * 60 * 1000 // Default to 5 minute timeout,
47
}
- }, options.fusebox));
48
+ }, options.fusebox || {});
49
50
+ this.breaker = new Fusebox((obj, cb) => obj.func(cb), breakerOptions);
51
52
53
/**
0 commit comments