diff --git a/VERSIONS_HOTLINE/23466 b/VERSIONS_HOTLINE/23466 new file mode 100644 index 0000000000000000000000000000000000000000..1d63bfb86cb4503ecb0152ebecd794139072f4bf --- /dev/null +++ b/VERSIONS_HOTLINE/23466 @@ -0,0 +1 @@ + - 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 diff --git a/cosmogramme/php/integre_traite_main.php b/cosmogramme/php/integre_traite_main.php index 6ab0c085d6cbd84e9473026bb62580d8981522d2..e8448c9dcb96d6300301621f0995d82f4d21f458 100644 --- a/cosmogramme/php/integre_traite_main.php +++ b/cosmogramme/php/integre_traite_main.php @@ -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>');