Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race condition when starting the module #13

Open
fjordansilva opened this issue Oct 13, 2014 · 0 comments
Open

Race condition when starting the module #13

fjordansilva opened this issue Oct 13, 2014 · 0 comments

Comments

@fjordansilva
Copy link

If in the mongo database there are any pending messages when the module is starting, in the start() method there is a check to load and send those messages:

if (persistorAddress != null) {
loadMessages();
}

But at this moment, there isn't any registered processor that can handle the delivery of the loaded messages. So those messages are never processed.

I think that the best place to check if there is any pending message is in the handler when registering a processor for a first time or maybe add a new address to be called when the module is deployed and the processors are configured (maybe "<module_address>.pending" )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant