Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-06-10 03:44:25 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-16 05:39:32 +0300
commit32ea9e5ca615b994682bf0e892c26d6aba8c85af (patch)
treeff9373fa8be600907178e35a83829644b4450906 /plugins/CoreConsole
parent07721914b66634cb39319d6271fb3f15b8c175a8 (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.php4
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,