Skip to content

Commit

Permalink
doc: exitedAfterDisconnect value can be false
Browse files Browse the repository at this point in the history
Fixed the documentation to reflect the changes in the default value
of worker.exitedAfterDisconnect

PR-URL: #29404
Fixes: #28837
Refs: #3743
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
  • Loading branch information
nimit95 authored and danbev committed Sep 9, 2019
1 parent 1f4f2b4 commit 695e819
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ added: v6.0.0

* {boolean}

Set by calling `.kill()` or `.disconnect()`. Until then, it is `undefined`.
This property is `true` if the worker exited due to `.kill()` or
`.disconnect()`. If the worker exited any other way, it is `false`. If the
worker has not exited, it is `undefined`.

The boolean [`worker.exitedAfterDisconnect`][] allows distinguishing between
voluntary and accidental exit, the master may choose not to respawn a worker
Expand Down

0 comments on commit 695e819

Please sign in to comment.