AutoGPT
AutoGPT copied to clipboard
Replace deprecated event hooks with lifecycle handler
User description
Background
This PR replaces the deprecated @app.on_event hooks with lifecycle handler.
Addresses https://github.com/Significant-Gravitas/AutoGPT/issues/7947
Changes ๐๏ธ
- Updated the
ws_api.pyfile to have lifecycle handlers instead of on_event hooks.
PR Quality Scorecard โจ
- [x] Have you used the PR description template? โ
+2 pts - [x] Is your pull request atomic, focusing on a single change? โ
+5 pts - [x] Have you linked the GitHub issue(s) that this PR addresses? โ
+5 pts - [x] Have you documented your changes clearly and comprehensively? โ
+5 pts - [ ] Have you changed or added a feature? โ
-4 pts- [ ] Have you added/updated corresponding documentation? โ
+4 pts - [ ] Have you added/updated corresponding integration tests? โ
+5 pts
- [ ] Have you added/updated corresponding documentation? โ
- [ ] Have you changed the behavior of AutoGPT? โ
-5 pts- [ ] Have you also run
agbenchmarkto verify that these changes do not regress performance? โ+10 pts
- [ ] Have you also run
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.
PR Reviewer Guide ๐
| โฑ๏ธย Estimated effort to review: 2 ๐ต๐ตโชโชโช |
| ๐งชย No relevant tests |
| ๐ย No security concerns identified |
| โกย Key issues to review Potential Race Condition |
Deploy Preview for auto-gpt-docs canceled.
| Name | Link |
|---|---|
| Latest commit | 9671863dbd7f6e4fa0fb0f6dbeac10c7af00b4cf |
| Latest deploy log | https://app.netlify.com/sites/auto-gpt-docs/deploys/66fd5525475eb80008e09945 |
Thanks for your contribution - can you please run the linter?
To run the linter you do:
poetry format in autogpt_sever folder
Thanks for considering this PR @aarushik93 @Swiftyos. The same is done.
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
@vishesh10 there has been some directory restructuring on this repo, this PR is valuable, would you mind resolving the conflict on this? :)
Conflicts have been resolved! ๐ A maintainer will review the pull request shortly.
@vishesh10 there has been some directory restructuring on this repo, this PR is valuable, would you mind resolving the conflict on this? :)
Hi @majdyz, The same is done. Thanks