Where a target listens, and whether anything is there yet.
Shared by the target-types that reach the target over a socket -- :http,
which connects to one somebody else started, and :local-process, which
waits for one it started itself. Deliberately protocol-blind: a TCP connect
is the most a deployment axis can honestly ask, since it knows the
target's address but not its API, and has no business inventing a health
endpoint the target may not have.
Where a target listens, and whether anything is there yet. Shared by the target-types that reach the target over a socket -- `:http`, which connects to one somebody else started, and `:local-process`, which waits for one it started itself. Deliberately protocol-blind: a TCP connect is the most a *deployment* axis can honestly ask, since it knows the target's address but not its API, and has no business inventing a health endpoint the target may not have.
(address target-type url)Where the target is listening, from its URL. Parsing this up front is how a
typo in a config becomes a sentence rather than a stack trace out of a
worker thread ten seconds into a run. target-type only shapes the message.
Where the target is listening, from its URL. Parsing this up front is how a typo in a config becomes a sentence rather than a stack trace out of a worker thread ten seconds into a run. `target-type` only shapes the message.
(reachable? address timeout)Is anything accepting connections there right now?
Is anything accepting connections there right now?
(wait-until-reachable address deadline-ms)Polls until something is listening, or deadline-ms of wall-clock has
passed. Returns true if it came up. For a target Lite just started: ops
issued before it can serve would fail for a reason that has nothing to do
with the target under test.
Polls until something is listening, or `deadline-ms` of wall-clock has passed. Returns true if it came up. For a target Lite just started: ops issued before it can serve would fail for a reason that has nothing to do with the target under test.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |