mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
New rewrite of provider. By moving to promises we should no longer have issues with double-quits.
This commit is contained in:
parent
8a23b37deb
commit
adaf3da228
3 changed files with 232 additions and 270 deletions
|
@ -28,10 +28,6 @@ program
|
|||
, 'name (or os.hostname())'
|
||||
, String
|
||||
, os.hostname())
|
||||
.option('-t, --restart-threshold <ms>'
|
||||
, 'restart worker only if it stays alive for longer than this'
|
||||
, Number
|
||||
, 10000)
|
||||
.option('--min-port <port>'
|
||||
, 'minimum port number for worker use'
|
||||
, Number
|
||||
|
@ -57,8 +53,6 @@ program
|
|||
|
||||
require('./roles/provider')({
|
||||
name: options.name
|
||||
, restartThreshold: options.restartThreshold
|
||||
, restartTimeout: 1000
|
||||
, killTimeout: 10000
|
||||
, ports: cliutil.range(options.minPort, options.maxPort)
|
||||
, filter: function(device) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue