Skip to content
Snippets Groups Projects
Commit 96c84709 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #33501 : "inc" and "tot" options no longer block batch run

parent e83d1fda
Branches
Tags
6 merge requests!1553Master,!1502Master,!1501Stable,!1312Master,!1299Master,!1297Hotline#33501 cosmogramme modification des strategies par type d operation inctot
......@@ -22,15 +22,6 @@
// PSEUDO-NOTICES - cms rss sitotheque et albums (phase 0.1 a 0.6)
// ----------------------------------------------------------------
// ----------------------------------------------------------------
// Batch
// ----------------------------------------------------------------
if ($phase >= 0 and $phase < 0.2) {
startIntegrationPhase('Batchs');
$phase = 0.2;
}
function deletePseudoNotice($id_notice) {
Class_Notice::find($id_notice)->delete();
}
......
<?PHP
<?php
/**
* Copyright (c) 2012, Agence Française Informatique (AFI). All rights reserved.
*
......@@ -169,11 +169,23 @@ if (!$should_skip_records) {
$log->ecrire('<h4>Traitement des notices</h4>');
setVariable('traitement_phase', 'Intégration des notices');
startIntegrationPhase('notice');
}
// ----------------------------------------------------------------
// Batch
// ----------------------------------------------------------------
if ($phase >= 0 and $phase < 0.2) {
startIntegrationPhase('Batchs');
$phase = 0.2;
}
if (!$should_skip_records) {
// ----------------------------------------------------------------
// PSEUDO-NOTICES - cms rss sitotheque et albums (phase 0.1 a 0.6)
// ----------------------------------------------------------------
if ($phase >= 0 and $phase < 1) {
if ($phase > 0.1 and $phase < 1) {
include('integration/pseudo_notices.php');
$phase = 1;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment