-
Notifications
You must be signed in to change notification settings - Fork 261
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
noflo.loadFile - How to know that all IIPs have been sent? #261
Comments
@sjaakiejj You could have a component which sends a message on outport when it receives an IIP in, and then monitor the outport. Attach this IIP at the end of the connections list. |
Ran into the same issue in |
I'm currently trying to test some of my noflo graphs, but ran into an issue regarding IIPs. Some of my components take some extra parameters as IIPs, so I specify those as data packets in the JSON graph file. But noflo.loadFile returns before these packets are sent to the components. This is the order of execution that I generated by putting print statements into the noflo methods:
[TEST] Loading graph file
[NETWORK] Starting Network...
[NETWORK] Network.prototype.sendInitials called
[NETWORK] Network.prototype.sendInitials.send called
[NETWORK] Network Started
...
[NETWORK] Network.prototype.sendInitials processing initials
[NETWORK] Network.prototype.addInitial called
[NETWORK] Expecting 1 initializations
[NETWORK] Network.prototype.addInitial called
[NETWORK] Expecting 2 initializations
[TEST] Graph file returned. 2 initializations pending
...
[NETWORK] Network.prototype.sendInitials processing initials
[NETWORK] Network.prototype.sendInitials processing initials
[NETWORK] Expecting 1 initializations
[NETWORK] Expecting 0 initializations
So my question is - how do I know that all the IIPs have been sent to their associated components to ensure the system has completely started?
Right now I'm using a timeout function, but that's not exactly robust.
The text was updated successfully, but these errors were encountered: