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

rel #23466 : add init mode to cosmogramme run

parent 0aeb889f
Branches
Tags
4 merge requests!1553Master,!1502Master,!1501Stable,!1330Hotline#23466 optimisations cosmogramme modifier le comportement du script integre traite mainphp
- ticket #23466 : Cosmogramme : ajout de la possibilité de ne lancer que la mise en file d'attente des fichiers reçus
\ No newline at end of file
......@@ -105,12 +105,23 @@ if ($_REQUEST['reprise'] == 'oui') {
if ($cron_a_traiter > '') {
$txt = ['all' => 'tous types d\'imports',
'tot' => 'imports totaux uniquement',
'inc' => 'imports incrementiels uniquement'];
'inc' => 'imports incrementiels uniquement',
'init' => 'mise en file d\'attente uniquement'];
$log->ecrire('Type d\'import : ' . $txt[$cron_a_traiter] . BR);
}
try {
startIntegrationPhase('PrepareIntegrations');
if ('init' == $cron_a_traiter) {
$log->ecrire(BR . BR . '<h4>mise en file d\'attente uniquement : fin du traitement</h4>');
$log->ecrire('Déblocage de la base<br>');
setVariable('clef_traitements', '0');
setVariable('traitement_phase', 'Traitement terminé');
$chrono->timeStart = $timeStart;
$log->ecrire('Heure : ' . date('G:i:s') . BR);
$log->ecrire('Temps de traitement : ' . $chrono->end() . BR);
exit;
}
} catch (Class_Cosmogramme_Integration_PhasePrepareIntegrationsException $e) {
$log->ecrire(BR . BR
. '<span class="rouge">' . $e->getMessage() . ' : Abandon du traitement !</span><br>');
......
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