Skip to content

NOISSUE - Reset agent statemachine when computation is stopped#417

Merged
dborovcanin merged 3 commits into
ultravioletrs:mainfrom
SammyOina:agent-sm-restart
Apr 2, 2025
Merged

NOISSUE - Reset agent statemachine when computation is stopped#417
dborovcanin merged 3 commits into
ultravioletrs:mainfrom
SammyOina:agent-sm-restart

Conversation

@SammyOina

Copy link
Copy Markdown
Contributor

What type of PR is this?

What does this do?

Which issue(s) does this PR fix/relate to?

  • Related Issue #
  • Resolves #

Have you included tests for your changes?

Did you document any new/modified feature?

Notes

Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Signed-off-by: Sammy Oina <sammyoina@gmail.com>
Comment on lines +100 to +101
// Close the existing event channel to stop processing events
close(sm.eventChan)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this safe? Do we have a select on the consumer routine to catch this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this happens after the consumer is stopped, we cancel context first so this is safe

…yaml

Signed-off-by: Sammy Oina <sammyoina@gmail.com>

@drasko drasko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@dborovcanin dborovcanin merged commit 12a20c7 into ultravioletrs:main Apr 2, 2025
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.

3 participants