Task summary
Right now we create nodes as subprocesses, write the log output to files and kill them using the OS kill process.
These functions should be changed such that:
- they are
context.Context based (so each node can be stopped gracefully by canceling the context)
- they return a runtime error channel (so we can detect runtime failures)
The following functions have to be modified:
InitGossamer
startGossamer
RunGossamer
These may be moved as methods on the Node type, which is more intuitive to use.
Task summary
Right now we create nodes as subprocesses, write the log output to files and kill them using the OS kill process.
These functions should be changed such that:
context.Contextbased (so each node can be stopped gracefully by canceling the context)The following functions have to be modified:
InitGossamerstartGossamerRunGossamerThese may be moved as methods on the
Nodetype, which is more intuitive to use.