-
Notifications
You must be signed in to change notification settings - Fork 6
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
Implement stop request in federated execution of TypeScript #111
Conversation
…ad of using greasted TAG.
…y handled by the default case of the switch statement. Update comments.
…pdating only the tag or the state.
…re is no event at (0, 0), by moving _iterationComplete() into the if statement, `if (nextEvent)`. This issue was discovered when running the newly added federated test, DistributedStop.lf, while working on implementation of stop request messages in TypeScrip federated execution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! My only request is that we start putting developer docs about federated execution on the wiki.
… in the comments.
@ByeongGil-Jun, I granted you write access to the lingua-franca repo (https://github.com/lf-lang/lingua-franca/). From now on, you should be able to create branches and edit wiki pages here: https://github.com/lf-lang/lingua-franca/wiki |
(However, lingua-franca-ref.txt must be updated before merging.) # Conflicts: # lingua-franca-ref.txt # src/core/federation.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this to unblock @ByeongGil-Jun. @lhstrh, please feel free to comment on this PR if you come up with any suggestions later!
Relevant issue: #101
Relevant LF PR: lf-lang/lingua-franca#1302
Add a logic for sending and propagating MSG_TYPE_STOP_REQUEST and MSG_TYPE_STOP_REQUEST_REPLY and receive MSG_TYPE_STOP_REQUEST_GRANTED
Discussion is needed to determine whether freeze federates or not.
Some function in reactor.ts is added and modified like getStartTag() and getStartTime() etc.