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

fix: small improvements to agent process exits #625

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

cygaar
Copy link
Collaborator

@cygaar cygaar commented Nov 27, 2024

Relates to:

N/A

Risks

Low, just a refactor and adding SIGTERM handling

Background

What does this PR do?

We catch SIGTERM and refactor a bit of code. In the future we can use the gracefulExit function to clean up DB and client resources as well.

What kind of change is this?

Small process management improvements

Documentation changes needed?

Nope

Testing

Where should a reviewer start?

Running an agent locally and exiting through an exit prompt or ctrl + c

Detailed testing steps

@cygaar cygaar changed the title Small improvement to agent process exiting fix: small improvements to agent process exits Nov 27, 2024
@fabianhug
Copy link
Contributor

I will give this a check in a bit, thanks!!

@lalalune lalalune merged commit cf39911 into elizaOS:main Nov 27, 2024
@lalalune
Copy link
Member

lgtm

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