Class WorkerFailedEventArgs
A NodeLink cluster worker crashed and the players of the affected guilds are gone, the worker respawns empty, players are only recreated on the next client request, and the affected guild connections are invalidated.
public sealed class WorkerFailedEventArgs : EventArgs
- Inheritance
-
WorkerFailedEventArgs
- Inherited Members
Remarks
NodeLink only, cluster mode is on by default.
Properties
AffectedGuilds
The guilds whose players died with the worker, parsed into their numeric ids.
[JsonPropertyName("affectedGuilds")]
[JsonInclude]
[JsonConverter(typeof(SnowflakeListConverter))]
public IReadOnlyList<ulong>? AffectedGuilds { get; }
Property Value
Remarks
A null, malformed or absent member reads as empty, so does a null or garbage element, one bad id must not take the whole invalidation down with it.
Message
The summary the cluster master reported when it rebuilt the failure notification, always present in NodeLink's frames, null only when a hostile frame carried no message.
[JsonPropertyName("message")]
[JsonInclude]
[JsonConverter(typeof(StringOrNumberConverter))]
public string? Message { get; }
Property Value
Remarks
A number reads as its text, a crashed worker can report a bare code.