TaskInfo updatedTaskInfo = taskBuilder.build();
try {
ExecutorInfo updateExecutorInfo = updatedExecutor.build();
OfferRequirement offerRequirement = new OfferRequirement(
Arrays.asList(updatedTaskInfo),
<BUG>updateExecutorInfo, null, null);
log.info(String.format("Got updated OfferRequirement: TaskInfo: '%s' ExecutorInfo: '%s'",</BUG>
TextFormat.shortDebugString(updatedTaskInfo),
TextFormat.shortDebugString(updateExecutorInfo)));
return offerRequirement;

TaskInfo updatedTaskInfo = taskBuilder.build();
try {
ExecutorInfo updateExecutorInfo = updatedExecutor.build();
OfferRequirement offerRequirement = new OfferRequirement(
Arrays.asList(updatedTaskInfo),
Optional.of(updateExecutorInfo),
null,
null);
log.info(String.format("Got updated OfferRequirement: TaskInfo: '%s' ExecutorInfo: '%s'",
TextFormat.shortDebugString(updatedTaskInfo),
TextFormat.shortDebugString(updateExecutorInfo)));
return offerRequirement;
