Skip to content

Commit

Permalink
Show in UI that worker is multiplexed only if multiplex workers are e…
Browse files Browse the repository at this point in the history
…nabled.

Before we checked only that this action supports multiplex worker.

PiperOrigin-RevId: 525418088
Change-Id: I94d65d1c507e50b529243e416f13603a2de89e61
  • Loading branch information
Googler authored and copybara-github committed Apr 19, 2023
1 parent ba1cd13 commit c6c33b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ public SpawnResult exec(Spawn spawn, SpawnExecutionContext context)
context.report(
SpawnSchedulingEvent.create(
WorkerKey.makeWorkerTypeName(
Spawns.supportsMultiplexWorkers(spawn), context.speculating())));
Spawns.supportsMultiplexWorkers(spawn) && workerOptions.workerMultiplex,
context.speculating())));
if (spawn.getToolFiles().isEmpty()) {
throw createUserExecException(
String.format(ERROR_MESSAGE_PREFIX + REASON_NO_TOOLS, spawn.getMnemonic()),
Expand Down

0 comments on commit c6c33b9

Please sign in to comment.