Skip to content

Commit

Permalink
Refactor : port java pour batch + nb de batch max
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Dec 3, 2024
1 parent 6deb802 commit dc05daa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docker/batch/itemBatchTraiterLigneFichierExemp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# * * * * * /home/batch/item/current/bin/itemBatchTraiterLigneFichierExemp.sh > /dev/null 2>&1

LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "traiterLigneFichierExemp") < 1 ]];
if [[ $(pgrep -cf "traiterLigneFichierExemp") < 2 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierExemp --server.port=8082
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierExemp --server.port=0
fi
4 changes: 2 additions & 2 deletions docker/batch/itemBatchTraiterLigneFichierModif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# * * * * * /home/batch/item/current/bin/itemBatchTraiterLigneFichierModif.sh > /dev/null 2>&1

LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "traiterLigneFichierModif") < 1 ]];
if [[ $(pgrep -cf "traiterLigneFichierModif") < 2 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierModif --server.port=8083
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierModif --server.port=0
fi
4 changes: 2 additions & 2 deletions docker/batch/itemBatchTraiterLigneFichierRecouv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# * * * * * /home/batch/item/current/bin/itemBatchTraiterLigneFichierRecouv.sh > /dev/null 2>&1

LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "traiterLigneFichierRecouv") < 1 ]];
if [[ $(pgrep -cf "traiterLigneFichierRecouv") < 2 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierRecouv --server.port=8084
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierRecouv --server.port=0
fi
4 changes: 2 additions & 2 deletions docker/batch/itemBatchTraiterLigneFichierSupp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# * * * * * /home/batch/item/current/bin/itemBatchTraiterLigneFichierSupp.sh > /dev/null 2>&1

LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "traiterLigneFichierSupp") < 1 ]];
if [[ $(pgrep -cf "traiterLigneFichierSupp") < 2 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierSupp --server.port=8085
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierSupp --server.port=0
fi

0 comments on commit dc05daa

Please sign in to comment.