Added streaming mode for better stage concurrency.
This commit is contained in:
+45
@@ -145,6 +145,51 @@ const { argv } = yargs(hideBin(process.argv))
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
})
|
||||
.option('stream', {
|
||||
describe: 'Deep scrape, store and fetch media for each scene as soon as it is listed, instead of finishing each stage for all scenes first',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
})
|
||||
.option('stream-concurrency', {
|
||||
describe: 'Maximum amount of scenes deep scraped in parallel when streaming',
|
||||
type: 'number',
|
||||
default: 5,
|
||||
})
|
||||
.option('stream-channel-concurrency', {
|
||||
describe: 'Maximum amount of scenes deep scraped in parallel per site when streaming',
|
||||
type: 'number',
|
||||
default: 1,
|
||||
})
|
||||
.option('stream-pending', {
|
||||
describe: 'Maximum amount of listed scenes queued for deep scraping when streaming, listing pauses when full',
|
||||
type: 'number',
|
||||
default: 100,
|
||||
})
|
||||
.option('stream-store-size', {
|
||||
describe: 'Amount of scenes stored at once when streaming',
|
||||
type: 'number',
|
||||
default: 20,
|
||||
})
|
||||
.option('stream-store-interval', {
|
||||
describe: 'Seconds before storing an incomplete group of scenes when streaming',
|
||||
type: 'number',
|
||||
default: 30,
|
||||
})
|
||||
.option('stream-scene-timeout', {
|
||||
describe: 'Seconds before giving up on deep scraping a scene and using its listing data when streaming',
|
||||
type: 'number',
|
||||
default: 300,
|
||||
})
|
||||
.option('stream-search-interval', {
|
||||
describe: 'Seconds between search updates when streaming',
|
||||
type: 'number',
|
||||
default: 300,
|
||||
})
|
||||
.option('refresh-pre-data', {
|
||||
describe: 'Recompute beforeFetchScenes data for every scene when streaming, to test scrapers don\'t rely on it staying the same',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
})
|
||||
.option('latest', {
|
||||
describe: 'Scrape latest releases if available',
|
||||
type: 'boolean',
|
||||
|
||||
Reference in New Issue
Block a user