repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: add worker info to worker nodes
[poolifier.git]
/
src
/
utility-types.ts
diff --git
a/src/utility-types.ts
b/src/utility-types.ts
index f330d192296dcc62a5b86a4209126d21798acff6..1f724274150f401833df2dec47750528235a578e 100644
(file)
--- a/
src/utility-types.ts
+++ b/
src/utility-types.ts
@@
-53,6
+53,10
@@
export interface WorkerStatistics {
*/
export interface MessageValue<Data = unknown, ErrorData = unknown>
extends Task<Data> {
*/
export interface MessageValue<Data = unknown, ErrorData = unknown>
extends Task<Data> {
+ /**
+ * Worker Id.
+ */
+ readonly workerId?: number
/**
* Kill code.
*/
/**
* Kill code.
*/
@@
-66,9
+70,13
@@
export interface MessageValue<Data = unknown, ErrorData = unknown>
*/
readonly taskPerformance?: TaskPerformance
/**
*/
readonly taskPerformance?: TaskPerformance
/**
- * Whether t
o compute
the given statistics or not.
+ * Whether t
he worker computes
the given statistics or not.
*/
readonly statistics?: WorkerStatistics
*/
readonly statistics?: WorkerStatistics
+ /**
+ * Whether the worker has started or not.
+ */
+ readonly started?: boolean
}
/**
}
/**