mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
corrected continues when branching in startupfolder
This commit is contained in:
parent
41dc270444
commit
f973c16321
2 changed files with 4 additions and 1 deletions
|
@ -415,6 +415,8 @@ Messages can be automatically scheduled to be read and executed at startup of St
|
|||
|
||||
A folder named **startup** will be present in the working directory of Steward, and you put the messages to be executed at startup here.
|
||||
|
||||
Messages put in the startup folder will not be sent to the broker but handled locally, and only (eventually) the reply message from the Request Method called will be sent to the broker.
|
||||
|
||||
#### How to send the reply to another node
|
||||
|
||||
Normally the **fromNode** field is automatically filled in with the node name of the node where a message originated.
|
||||
|
|
|
@ -104,13 +104,14 @@ func (s *server) readStartupFolder() {
|
|||
if !ok {
|
||||
er := fmt.Errorf("error: subscriberHandler: method type not available: %v", p.subject.Event)
|
||||
p.processes.errorKernel.errSend(p, sams[i].Message, er)
|
||||
continue
|
||||
}
|
||||
|
||||
_, err = mh.handler(p, sams[i].Message, s.nodeName)
|
||||
|
||||
if err != nil {
|
||||
er := fmt.Errorf("error: subscriberHandler: handler method failed: %v", err)
|
||||
p.processes.errorKernel.errSend(p, sams[i].Message, er)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue