Skip to content

Commit

Permalink
chore: rename stage
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemDoum committed Nov 20, 2024
1 parent cdf6998 commit 4c3a08f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion datashare-api/src/main/java/org/icij/datashare/Stage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum Stage {
INDEX(true),
ENQUEUEIDX(false),
NLP(true),
CREATENLPBATCHESFROMINDEX(false),
CREATENLPBATCHESFROMIDX(false),
BATCHNLP(false),
ARTIFACT(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void test_get_queue_names_for_batch_nlp_pipeline() {
@Test
public void test_get_queue_names_for_batch_nlp_pipeline_from_index() {
PipelineHelper pipelineHelper = new PipelineHelper(new PropertiesProvider(new HashMap<>() {{
put("stages", "CREATENLPBATCHESFROMINDEX,BATCHNLP");
put("stages", "CREATENLPBATCHESFROMIDX,BATCHNLP");
}}));
assertThat(pipelineHelper.getQueueNameFor(Stage.BATCHNLP)).isEqualTo("extract:queue:batchnlp");
}
Expand Down
3 changes: 1 addition & 2 deletions datashare-app/src/main/java/org/icij/datashare/CliApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.Properties;

Expand Down Expand Up @@ -137,7 +136,7 @@ private static void runTaskWorker(CommonMode mode, Properties properties) throws
new Task<>(EnqueueFromIndexTask.class.getName(), nullUser(), propertiesToMap(properties)));
}

if (pipeline.has(Stage.CREATENLPBATCHESFROMINDEX)) {
if (pipeline.has(Stage.CREATENLPBATCHESFROMIDX)) {
taskFactory.createBatchEnqueueFromIndexTask(
new Task<>(CreateNlpBatchesFromIndex.class.getName(), nullUser(), propertiesToMap(properties)),
(percentage) -> {logger.info("percentage: {}% done", percentage); return null;}).call();
Expand Down

0 comments on commit 4c3a08f

Please sign in to comment.