Permalink
Browse files

ensure no output whith quit cronjob

  • Loading branch information...
1 parent dae0321 commit 53fb24be05fd2c3a6f024c0f1e6150847a5fa054 @bchoquet-heliopsis bchoquet-heliopsis committed Aug 21, 2012
Showing with 6 additions and 6 deletions.
  1. +2 −2 cronjobs/sqliimport_cleanup.php
  2. +4 −4 cronjobs/sqliimport_run.php
@@ -15,8 +15,8 @@
// Indexing will be trigerred by indexcontent cronjob
-$cli->notice( 'Cleanup is over :)' );
+$cli->output( 'Cleanup is over :)' );
$memoryMax = memory_get_peak_usage(); // Result is in bytes
$memoryMax = round( $memoryMax / 1024 / 1024, 2 ); // Convert in Megabytes
-$cli->notice( 'Peak memory usage : '.$memoryMax.'M' );
+$cli->output( 'Peak memory usage : '.$memoryMax.'M' );
@@ -23,7 +23,7 @@
$aImmediateImports = SQLIImportItem::fetchPendingList();
if( count( $aImmediateImports ) > 0 )
{
- $cli->warning( 'Now handling immediate imports' );
+ $cli->output( 'Now handling immediate imports' );
$importFactory = SQLIImportFactory::instance();
$importFactory->runImport( $aImmediateImports );
$importFactory->cleanup();
@@ -51,7 +51,7 @@
// Then create a pending SQLIImportItem for each scheduled import
if( count( $aScheduledImports ) > 0 )
{
- $cli->warning( 'Now handling scheduled imports' );
+ $cli->output( 'Now handling scheduled imports' );
$aImportItems = array();
foreach( $aScheduledImports as $scheduledImport )
{
@@ -70,11 +70,11 @@
// ##### End Scheduled imports
// ##########
- $cli->notice( 'Import is over :)' );
+ $cli->output( 'Import is over :)' );
$memoryMax = memory_get_peak_usage(); // Result is in bytes
$memoryMax = round( $memoryMax / 1024 / 1024, 2 ); // Convert in Megabytes
- $cli->notice( 'Peak memory usage : '.$memoryMax.'M' );
+ $cli->output( 'Peak memory usage : '.$memoryMax.'M' );
}
catch( Exception $e )

0 comments on commit 53fb24b

Please sign in to comment.