Skip to content

Commit 3bb3c6c

Browse files
clydinalan-agius4
authored andcommitted
fix(@angular-devkit/core): ensure job input values are processed in order
If schema validation happens to be asynchronous then the switchMap could cause loss of input values.
1 parent 6732294 commit 3bb3c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/core/src/experimental/jobs/simple-scheduler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export class SimpleScheduler<
306306
// Create the input channel by having a filter.
307307
const input = new Subject<JsonValue>();
308308
input.pipe(
309-
switchMap(message => handler.pipe(
309+
concatMap(message => handler.pipe(
310310
switchMap(handler => {
311311
if (handler === null) {
312312
throw new JobDoesNotExistException(name);

0 commit comments

Comments
 (0)