Skip to content

Execution context cleanup - #28

Closed
johnnyshields wants to merge 6 commits into
mainfrom
execution-context-cleanup
Closed

Execution context cleanup#28
johnnyshields wants to merge 6 commits into
mainfrom
execution-context-cleanup

Conversation

@johnnyshields

Copy link
Copy Markdown
Contributor

No description provided.

…sue in the process related to dynamic routing.

The core problem is that disconnected stages -- e.g. consumers with no upstream--will automatically shutdown instantly based on logic we added. See worker.rb line 60 (# If no upstream sources, this stage is disconnected)

If we remove this logic, these disconnected stages will never shut-down, unless they get a dynamic producer to connect to them (or their pipeline sends and send of stage?)

The solution is something like (A) allowing stages to be declared as disconnected: true, and (B) adding various keep-alive options for stages so they have a change to receive dynamic inputs before shutting down. A 3rd option (C) is to send Nonce signal (StageConnected) and/or KeepAlive signal to the stage initially, to declare the dynamic linkage. That might require some keepalive.

The yield example should be refactored to use connected stages
@johnnyshields

Copy link
Copy Markdown
Contributor Author

Moved to minigun-org/minigun#2

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

Successfully merging this pull request may close these issues.

1 participant