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

feat: Hermes event queue and Hermes reactor #135

Merged
merged 61 commits into from
Mar 11, 2024
Merged

Conversation

Mr-Leshiy
Copy link
Contributor

@Mr-Leshiy Mr-Leshiy commented Feb 16, 2024

Description

  • Added a HermesEventQueue implementation as a mpsc FIFO queue. This struct is s singleton object which is stores as a static OnceCell variable.
  • Added a HermesReactor struct, which should a general manager which orchestrates all hermes execution like: running and stepping runtime extensions; initialising and holding an event queue instance and manages event loop thread.
  • Refactored and modified state management.

Related Issue(s)

#125

@Mr-Leshiy Mr-Leshiy self-assigned this Feb 16, 2024
@Mr-Leshiy Mr-Leshiy added the draft Draft label Feb 16, 2024
@Mr-Leshiy Mr-Leshiy requested a review from stevenj February 29, 2024 12:42
@Mr-Leshiy Mr-Leshiy requested a review from FelipeRosa March 4, 2024 09:07
Copy link

@FelipeRosa FelipeRosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm just not sure about if are we going to include some mechanism for initialializing each runtime extension in this PR as mentioned by Steven?

Copy link
Collaborator

@stevenj stevenj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments and change requested PR here:
#173

hermes/bin/src/event/mod.rs Show resolved Hide resolved
hermes/bin/src/event/mod.rs Show resolved Hide resolved
hermes/bin/src/event/queue.rs Outdated Show resolved Hide resolved
* fix(hermes): changes requested for event queue

* fix(hermes): Reintroduce mechanism to advise runtime extensions of a new context

* fix(hermes): fix code format
@Mr-Leshiy Mr-Leshiy requested a review from stevenj March 7, 2024 09:10
@stevenj
Copy link
Collaborator

stevenj commented Mar 7, 2024

LGTM. I'm just not sure about if are we going to include some mechanism for initialializing each runtime extension in this PR as mentioned by Steven?

Yes we did in the latest changes.

saibatizoku
saibatizoku previously approved these changes Mar 8, 2024
Copy link
Contributor

@saibatizoku saibatizoku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this will help in getting our APIs running!

Copy link
Collaborator

@stevenj stevenj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevenj stevenj merged commit 809fddb into main Mar 11, 2024
21 checks passed
@stevenj stevenj deleted the feat/hermes-reactor branch March 11, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review me PR is ready for review
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

🛠️ [TASK] : Hermes event queue
5 participants