ExecutorData executorData = task.getDeploy().getExecutorData().get();
if (task.getPendingTask().getMaybeCmdLineArgs().isPresent()) {
LOG.trace("Adding cmd line args {} to task {} executorData", task.getPendingTask().getMaybeCmdLineArgs().get(), taskId.getId());
ExecutorDataBuilder executorDataBldr = executorData.toBuilder();
final ImmutableList.Builder<String> extraCmdLineArgsBuilder = ImmutableList.builder();
if (executorDataBldr.getExtraCmdLineArgs() != null && !executorDataBldr.getExtraCmdLineArgs().isEmpty()) {
extraCmdLineArgsBuilder.addAll(executorDataBldr.getExtraCmdLineArgs());
}
extraCmdLineArgsBuilder.add(task.getPendingTask().getMaybeCmdLineArgs().get());
executorDataBldr.setExtraCmdLineArgs(extraCmdLineArgsBuilder.build());
executorData = executorDataBldr.build();
}
try {
bldr.setData(ByteString.copyFromUtf8(objectMapper.writeValueAsString(executorData)));
} catch (JsonProcessingException e) {