After a recent PR, batch execution of background jobs started returning questionable outcomes. As the team observed, some failures now look like an "ordinary" result, and in some scenarios the entire run stops prematurely, even though the remaining items were supposed to continue processing.
RunAsync method must process input identifiers one by one and return a JobBatchResult.IJobExecutor.ExecuteAsync must be called.FailedIds, but must not stop processing the remaining items.CancellationToken, the method must terminate with a cancellation exception, not return a normal result.null, and whitespace values must be ignored.JobBatchRunner.CancellationToken is already canceled before calling RunAsync or is canceled during execution;FailedIds.JobBatchResult.SucceededCount..NET 8.0C# 12reviewdotnet builddotnet test or manual verification via calling JobBatchRunner.RunAsyncJobExecutionException type; all other exceptions are considered unforeseenUse line comments to explain the problem, its impact, the fix and how to test it.