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 targos committed Sep 20, 2019
1 parent 1aea747 commit 5d4655c
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 5d4655c

Please sign in to comment.