Skip to content

Commit

Permalink
delay between phase as class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Jun 29, 2023
1 parent 750033f commit b250d85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arc-batch/src/main/java/fr/insee/arc/batch/BatchARC.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,10 @@ private void resetWorkDirectory() throws ArcException, IOException {
* @param pool
* @return
*/
private int initializeBatchLoop(ArrayList<TraitementPhase> phases,
private void initializeBatchLoop(ArrayList<TraitementPhase> phases,
HashMap<TraitementPhase, ArrayList<PhaseThreadFactory>> pool) {
int stepNumber = (TraitementPhase.MAPPING.getOrdre() - TraitementPhase.CHARGEMENT.getOrdre()) + 2;
int delay = poolingDelay / stepNumber;
this.delay = poolingDelay / stepNumber;

message("Initialisation boucle Chargement->Mapping");

Expand All @@ -519,7 +519,7 @@ private int initializeBatchLoop(ArrayList<TraitementPhase> phases,
for (TraitementPhase phase : phases) {
pool.put(phase, new ArrayList<>());
}
return delay;

}

/**
Expand All @@ -536,7 +536,7 @@ private void executeLoopOverPhases() throws ArcException
return;
}

this.delay = initializeBatchLoop(phases, pool);
initializeBatchLoop(phases, pool);

// boucle de chargement
message("Début de la boucle d'itération");
Expand Down

0 comments on commit b250d85

Please sign in to comment.