Skip to content

Commit

Permalink
Fix : suppression script lancement batch restart job
Browse files Browse the repository at this point in the history
Ajout -XX:MaxRAMPercentage=95 dans lancement des batchs
  • Loading branch information
pierre-maraval committed Jun 13, 2024
1 parent f81ee3e commit fc86d28
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 16 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ RUN dnf install -y tzdata && \
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
echo "Europe/London" > /etc/timezone

COPY ./docker/batch/itemBatchRestartJobs.sh /scripts/itemBatchRestartJobs.sh
RUN chmod +x /scripts/itemBatchRestartJobs.sh
COPY ./docker/batch/itemBatchArchiverDemandesPlusDeTroisMois.sh /scripts/itemBatchArchiverDemandesPlusDeTroisMois.sh
RUN chmod +x /scripts/itemBatchArchiverDemandesPlusDeTroisMois.sh
COPY ./docker/batch/itemBatchExportStatistiques.sh /scripts/itemBatchExportStatistiques.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/batch/itemBatchArchiverDemandesPlusDeTroisMois.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "item-batch.jar --spring.batch.job.names=archiverDemandesPlusDeTroisMois") < 1 ]];
then
java -jar /scripts/item-batch.jar --spring.batch.job.names=archiverDemandesPlusDeTroisMois
java -jar -XX:MaxRAMPercentage=95 /scripts/item-batch.jar --spring.batch.job.names=archiverDemandesPlusDeTroisMois
fi
8 changes: 0 additions & 8 deletions docker/batch/itemBatchRestartJobs.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "item-batch.jar --spring.batch.job.names=statutSupprimeDemandesPlusDeTroisMois") < 1 ]];
then
java -jar /scripts/item-batch.jar --spring.batch.job.names=statutSupprimeDemandesPlusDeTroisMois
java -jar -XX:MaxRAMPercentage=95 /scripts/item-batch.jar --spring.batch.job.names=statutSupprimeDemandesPlusDeTroisMois
fi
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "item-batch.jar --spring.batch.job.names=suppressionDemandesPlusDeTroisMois") < 1 ]];
then
java -jar /scripts/item-batch.jar --spring.batch.job.names=suppressionDemandesPlusDeTroisMois
java -jar -XX:MaxRAMPercentage=95 /scripts/item-batch.jar --spring.batch.job.names=suppressionDemandesPlusDeTroisMois
fi
2 changes: 1 addition & 1 deletion docker/batch/itemBatchTraiterLigneFichierExemp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "item-batch.jar --spring.batch.job.names=traiterLigneFichierExemp") < 1 ]];
then
java -jar /scripts/item-batch.jar --spring.batch.job.names=traiterLigneFichierExemp --server.port=8082
java -jar -XX:MaxRAMPercentage=95 /scripts/item-batch.jar --spring.batch.job.names=traiterLigneFichierExemp --server.port=8082
fi
2 changes: 1 addition & 1 deletion docker/batch/itemBatchTraiterLigneFichierModif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "item-batch.jar --spring.batch.job.names=traiterLigneFichierModif") < 1 ]];
then
java -jar /scripts/item-batch.jar --spring.batch.job.names=traiterLigneFichierModif --server.port=8083
java -jar -XX:MaxRAMPercentage=95 /scripts/item-batch.jar --spring.batch.job.names=traiterLigneFichierModif --server.port=8083
fi
2 changes: 1 addition & 1 deletion docker/batch/itemBatchTraiterLigneFichierRecouv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
LANG=fr_FR.UTF-8
if [[ $(pgrep -cf "item-batch.jar --spring.batch.job.names=traiterLigneFichierRecouv") < 1 ]];
then
java -jar /scripts/item-batch.jar --spring.batch.job.names=traiterLigneFichierRecouv --server.port=8084
java -jar -XX:MaxRAMPercentage=95 /scripts/item-batch.jar --spring.batch.job.names=traiterLigneFichierRecouv --server.port=8084
fi

0 comments on commit fc86d28

Please sign in to comment.