Skip to content

Commit

Permalink
refactor(tasks): relocate BashService to PluginService
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Aug 17, 2023
1 parent c7dbca0 commit bb1171b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/kestra/plugin/azure/batch/job/Create.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import io.kestra.core.models.executions.metrics.Timer;
import io.kestra.core.models.tasks.RunnableTask;
import io.kestra.core.runners.RunContext;
import io.kestra.core.tasks.scripts.BashService;
import io.kestra.core.tasks.PluginUtilsService;
import io.kestra.plugin.azure.batch.AbstractBatch;
import io.kestra.plugin.azure.batch.models.Job;
import io.kestra.plugin.azure.batch.models.Task;
Expand Down Expand Up @@ -198,12 +198,12 @@ public Output run(RunContext runContext) throws Exception {

// log
TaskService.readRemoteLog(runContext, client, jobId, task, "stdout.txt", msg -> {
outputs.putAll(BashService.parseOut(msg, logger, runContext));
outputs.putAll(PluginUtilsService.parseOut(msg, logger, runContext));
logger.info(msg);
});

TaskService.readRemoteLog(runContext, client, jobId, task, "stderr.txt", msg -> {
outputs.putAll(BashService.parseOut(msg, logger, runContext));
outputs.putAll(PluginUtilsService.parseOut(msg, logger, runContext));
logger.warn(msg);
});

Expand Down

0 comments on commit bb1171b

Please sign in to comment.