Skip to content

Commit

Permalink
Merge pull request #76 from abes-esr/develop
Browse files Browse the repository at this point in the history
Develop to main
  • Loading branch information
jvk88511334 authored Oct 25, 2024
2 parents 0c26df5 + d860431 commit 51e2ac5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions docker/batch/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash

# Paramètres par défaut du conteneur
export ITEM_BATCH_CRON_TRAITEMENT=${ITEM_BATCH_CRON_TRAITEMENT:='* * * * *'}
export ITEM_BATCH_CRON_STAT=${ITEM_BATCH_CRON_STAT:='0 7 1 * *'}
export ITEM_BATCH_AT_STARTUP=${ITEM_BATCH_AT_STARTUP:='1'}

# Réglage de /etc/environment pour que les crontab s'exécutent avec les bonnes variables d'env
Expand Down
11 changes: 7 additions & 4 deletions docker/batch/tasks.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
* * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierModif.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
* * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierExemp.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
* * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierRecouv.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
* * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierSupp.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
*/2 * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierModif.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
1-59/2 * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierExemp.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
1-59/2 * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierRecouv.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
*/2 * * * * cd /scripts/ ; /scripts/itemBatchTraiterLigneFichierSupp.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
0 20 * * 0 cd /scripts/ ; /scripts/itemBatchArchiverDemandesPlusDeTroisMois.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
0 21 * * 0 cd /scripts/ ; /scripts/itemBatchStatutSupprimeDemandesPlusDeTroisMois.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
0 22 * * 0 cd /scripts/ ; /scripts/itemBatchSuppressionDemandesPlusDeTroisMois.sh 1>/proc/1/fd/1 2>/proc/1/fd/2
${ITEM_BATCH_CRON_STAT} cd /scripts/ ; /scripts/itemBatchExportStatistiques.sh 1>/proc/1/fd/1 2>/proc/1/fd/2

0 comments on commit 51e2ac5

Please sign in to comment.