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:
parent
c0d02c4e3a
commit
98470cda20
3 changed files with 53 additions and 19 deletions
|
@ -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
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue