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

How does info:entry work? #5

Open
kevin-madhu opened this issue Aug 4, 2016 · 1 comment
Open

How does info:entry work? #5

kevin-madhu opened this issue Aug 4, 2016 · 1 comment
Labels

Comments

@kevin-madhu
Copy link

kevin-madhu commented Aug 4, 2016

I replicated similar code, and tried to send info messages like
this.act('info:entry',entry.data$())
in the post service. But, the services kept on dying with act_not_found error.
So, I tried to find out if the same thing happens in this code base - cloned the project, removed all the services except base, api, entry-store and post and found that the services don't die even though none of the services implement 'info:entry' pattern. Then I came across

var OPTS = (process.env.OPTS || '--seneca.options.debug.undead=true --seneca.options.plugin.mesh.sneeze.silent=1')

in the fuge-config.js and removed it completely, but services were still fine with the message.
I tried matching all the seneca configuration and ended up with very identical code in both my replica and ramanujan, but still my replica failed, while ramanujan was fine with unimplemented messages. Finally, I gave up trying matching code and packages and used

seneca.act({exhausted: true, message: 'not_implemented', default$: {}})
as suggested by senecajs/seneca#219, but it's ugly :)

But I'm still curious about how ramanujan keeps his cool about unimplemented messages. Also please suggest if I should choose to make info messages look like all the other messages in the services like in this project(dunno how!) or go with adding default$:{} for each one of them(a little bit explanation can help).

Thanks 🍻

@rjrodger rjrodger added the bug label Sep 8, 2016
@rjrodger
Copy link
Contributor

rjrodger commented Sep 8, 2016

There should be a default action defined for info:entry to handle this case.

The main system is depending on other services that listen for info:entry being live and registered on the mesh, thus registered an info:entry pattern

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

No branches or pull requests

2 participants