Skip to content

Commit

Permalink
Merge pull request #3962 from rgrinberg/pending-jobs-assert
Browse files Browse the repository at this point in the history
[scheduler] assert pending jobs are non-negative
  • Loading branch information
rgrinberg authored Nov 24, 2020
2 parents 421b7f6 + 9e0ee5a commit 3513f63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dune_engine/scheduler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ end = struct
| [] ->
let job, status = Queue.pop_exn jobs_completed in
decr pending_jobs;
assert (!pending_jobs >= 0);
Job_completed (job, status)
| fns ->
files_changed := [];
Expand Down

0 comments on commit 3513f63

Please sign in to comment.