Skip to content

Commit

Permalink
FIX : modification lancement batch avec option -D
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Jan 9, 2025
1 parent 971e8b4 commit f6939b5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions docker/batch/itemBatchTraiterLigneFichierExemp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if [[ $isEnAttente == 'true' ]];
then
isEnAttenteBigVolume=$(curl -s $urlIsEnAttenteBigVolume)
isEnAttenteSmallVolume=$(curl -s $urlIsEnAttenteSmallVolume)
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierExemp --bigVolume=true") < 1 ]];
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierExemp -DbigVolume=true") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierExemp --bigVolume=true --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierExemp -DbigVolume=true --server.port=0
fi
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierExemp --bigVolume=false") < 1 ]];
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierExemp -DbigVolume=false") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierExemp --bigVolume=false --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierExemp -DbigVolume=false --server.port=0
fi
fi
8 changes: 4 additions & 4 deletions docker/batch/itemBatchTraiterLigneFichierModif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if [[ $isEnAttente == 'true' ]];
then
isEnAttenteBigVolume=$(curl -s $urlIsEnAttenteBigVolume)
isEnAttenteSmallVolume=$(curl -s $urlIsEnAttenteSmallVolume)
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierModif --bigVolume=true") < 1 ]];
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierModif -DbigVolume=true") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierModif --bigVolume=true --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierModif -DbigVolume=true --server.port=0
fi
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierModif --bigVolume=false") < 1 ]];
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierModif -DbigVolume=false") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierModif --bigVolume=false --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierModif -DbigVolume=false --server.port=0
fi
fi
8 changes: 4 additions & 4 deletions docker/batch/itemBatchTraiterLigneFichierRecouv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if [[ $isEnAttente == 'true' ]];
then
isEnAttenteBigVolume=$(curl -s $urlIsEnAttenteBigVolume)
isEnAttenteSmallVolume=$(curl -s $urlIsEnAttenteSmallVolume)
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierRecouv --bigVolume=true") < 1 ]];
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierRecouv -DbigVolume=true") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierRecouv --bigVolume=true --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierRecouv -DbigVolume=true --server.port=0
fi
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierRecouv --bigVolume=false") < 1 ]];
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierRecouv -DbigVolume=false") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierRecouv --bigVolume=false --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierRecouv -DbigVolume=false --server.port=0
fi
fi
8 changes: 4 additions & 4 deletions docker/batch/itemBatchTraiterLigneFichierSupp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ if [[ $isEnAttente == 'true' ]];
then
isEnAttenteBigVolume=$(curl -s $urlIsEnAttenteBigVolume)
isEnAttenteSmallVolume=$(curl -s $urlIsEnAttenteSmallVolume)
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierSupp --bigVolume=true") < 1 ]];
if [[ $isEnAttenteBigVolume == 'true' && $(pgrep -cf "traiterLigneFichierSupp -DbigVolume=true") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierSupp --bigVolume=true --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierSupp -DbigVolume=true --server.port=0
fi
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierSupp --bigVolume=false") < 1 ]];
if [[ $isEnAttenteSmallVolume == 'true' && $(pgrep -cf "traiterLigneFichierSupp -DbigVolume=false") < 1 ]];
then
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierSupp --bigVolume=false --server.port=0
java -XX:MaxRAMPercentage=80 org.springframework.boot.loader.JarLauncher --spring.batch.job.name=traiterLigneFichierSupp -DbigVolume=false --server.port=0
fi
fi

0 comments on commit f6939b5

Please # to comment.