Skip to content

Commit

Permalink
Fix API mode not launching
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisszmundy committed Jul 5, 2024
1 parent 5b2125b commit 0154af1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import fr.insee.kraftwerk.api.process.MainProcessing;
import fr.insee.kraftwerk.api.process.MainProcessingGenesis;
import fr.insee.kraftwerk.api.services.KraftwerkService;
import fr.insee.kraftwerk.core.exceptions.KraftwerkException;
import fr.insee.kraftwerk.core.utils.files.MinioImpl;
import io.minio.MinioClient;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -42,7 +41,7 @@ public void run(String... args) {
try {
//If .jar launched with cli args
if (args.length > 0) {
log.info("Launching Kraftwerk using cli");
log.info("Launching Kraftwerk in CLI mode...");

//Check arguments
checkArgs(args);
Expand Down Expand Up @@ -83,7 +82,11 @@ public void run(String... args) {
}catch(Exception e){
log.error(e.toString());
}
System.exit(1);
if(args.length > 0) {
System.exit(1);
}else{
log.info("Launching Kraftwerk in API mode...");
}
}

/**
Expand Down

0 comments on commit 0154af1

Please sign in to comment.