diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-10 03:44:25 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-16 05:39:32 +0300 |
commit | 32ea9e5ca615b994682bf0e892c26d6aba8c85af (patch) | |
tree | ff9373fa8be600907178e35a83829644b4450906 /plugins/CoreConsole | |
parent | 07721914b66634cb39319d6271fb3f15b8c175a8 (diff) |
Add --skip-all-segments parameter to core:archive command to allow skipping archiving of segments.
Diffstat (limited to 'plugins/CoreConsole')
-rw-r--r-- | plugins/CoreConsole/Commands/CoreArchiver.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreConsole/Commands/CoreArchiver.php b/plugins/CoreConsole/Commands/CoreArchiver.php index 043a8bf8f2..fcc15fdba5 100644 --- a/plugins/CoreConsole/Commands/CoreArchiver.php +++ b/plugins/CoreConsole/Commands/CoreArchiver.php @@ -49,6 +49,8 @@ class CoreArchiver extends ConsoleCommand $archiver->dateLastForced = $input->getOption('force-date-last-n'); $archiver->concurrentRequestsPerWebsite = $input->getOption('concurrent-requests-per-website'); + $archiver->disableSegmentsArchiving = $input->getOption('skip-all-segments'); + $segmentIds = $input->getOption('force-idsegments'); $segmentIds = explode(',', $segmentIds); $segmentIds = array_map('trim', $segmentIds); @@ -101,6 +103,8 @@ class CoreArchiver extends ConsoleCommand 'If specified, only these segments will be processed (if the segment should be applied to a site in the ' . "first place). Specify stored segment IDs, not the segments themselves, eg, 1,2,3. Note: if identical " . "segments exist w/ different IDs, they will both be skipped, even if you only supply one ID."); + $command->addOption('skip-all-segments', null, InputOption::VALUE_NONE, + 'If specified, all segments will be skipped during archiving.'); $command->addOption('concurrent-requests-per-website', null, InputOption::VALUE_OPTIONAL, "When processing a website and its segments, number of requests to process in parallel", CronArchive::MAX_CONCURRENT_API_REQUESTS); $command->addOption('disable-scheduled-tasks', null, InputOption::VALUE_NONE, |