Skip to content

Commit

Permalink
fresh implementation of wait-on
Browse files Browse the repository at this point in the history
Each resource type is an observable that now returns
false initially and true when the check passes. It also
completes the observable.

An RxJS combineLatest is uses to collect the latest state
from all the observables and output status. A timeout (if set)
will generate an error, terminating all the resource observable
checks.

In rethinking the stability window, it was redone so that
the stability window only applies to file resources, to check
if the file size is changing (it is being written to). Once the
file is found and its size stabilizes for the necessary time, it
will then signal success. The other resources do not use the
stability window, once they become available they signal success.
  • Loading branch information
jeffbski committed Jan 7, 2020
1 parent cbf2f42 commit 0ddb194
Showing 1 changed file with 257 additions and 220 deletions.
Loading

0 comments on commit 0ddb194

Please sign in to comment.