1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

Add rate limiting to the image processor.

This commit is contained in:
Simo Kinnunen 2014-05-21 14:32:21 +09:00
parent c0d02c4e3a
commit 98470cda20
3 changed files with 53 additions and 19 deletions

View file

@ -512,6 +512,9 @@ program
.option('-r, --storage-url <url>'
, 'URL to storage client'
, String)
.option('-c, --concurrency <num>'
, 'maximum number of simultaneous transformations'
, Number)
.option('--cache-dir <dir>'
, 'where to cache images'
, String
@ -525,6 +528,7 @@ program
port: options.port
, storageUrl: options.storageUrl
, cacheDir: options.cacheDir
, concurrency: options.concurrency || os.cpus().length
})
})