Commit Graph

211 Commits

Author SHA1 Message Date
hjlarry ff7067cc01 chore: more log about aws 2026-06-12 16:30:27 +08:00
Yeuoly cf494208aa fix: prevent potential deadlock in stdio handler listener invocation (#72)
Modify stdout listener handling to avoid potential deadlocks by:
- Copying listeners before invocation
- Executing listener callbacks outside of the lock
- Separating listener retrieval and execution steps
2025-03-07 15:39:27 +08:00
Yeuoly cf7649a0b2 feat: add pip configuration options for plugin environment setup (#63)
* feat: add pip configuration options for plugin environment setup

Enhance Python plugin environment initialization with new configuration options:
- Add support for pip prefer binary flag
- Add pip verbose mode
- Add extra pip arguments configuration
- Set default values for new pip-related configuration options

* fix

* fix
2025-03-06 14:53:40 +08:00
Yeuoly 1944a829d2 feat: add plugin access action to session write method (#64)
Modify session write method to include a new plugin access action parameter across multiple runtime implementations. This change allows for more granular tracking and handling of plugin interactions by introducing an optional action context to the write method.
2025-03-06 14:51:32 +08:00
zhangyuhang 7fb92a40b8 optimization: Fix CROSSSLOT Error in Redis Commands (#61)
Co-authored-by: yuhang2.zhang <yuhang2.zhang@ly.com>
2025-03-06 13:25:11 +08:00
Yeuoly e0672c3c1a fix: optimize plugin last active time tracking in stdio handler (#59)
* fix: optimize plugin last active time tracking in stdio handler

Move last active time update to occur on each data receipt to ensure more accurate tracking of plugin activity

* feat: enhance plugin activity monitoring and logging

Improve plugin activity tracking by:
- Extending inactivity timeout to 120 seconds before considering a plugin dead
- Adding warning log for plugins inactive for more than 60 seconds
- Including plugin identifier in log messages for better traceability
2025-03-05 17:44:52 +08:00
Yeuoly 25896a2a5c fix: add error logging for connection handshake failure (#57)
Add error logging when connection handshake fails in the plugin runtime to improve debugging and error traceability
2025-03-05 15:00:03 +08:00
Yeuoly d5d12a0589 feat: add patch mechanism for Python plugin SDK memory leak (#55) 2025-03-05 13:33:41 +08:00
Yeuoly 8e59ac8b9a feat: add Python plugin pre-compilation and update plugin upgrade logic (#54)
* feat: add Python plugin pre-compilation and update plugin upgrade logic

This commit introduces two main changes:
1. Pre-compilation of Python plugins during environment initialization to improve initial runtime performance
2. Updated plugin upgrade logic to use PluginID instead of string identifier for agent strategy installation

* refactor: update plugin installation deletion to use PluginID consistently

Remove PluginUniqueIdentifier from deletion conditions in UninstallPlugin and UpgradePlugin methods, standardizing the use of PluginID across different installation types
2025-03-05 12:50:00 +08:00
kuangzhiqiang ff2923fa94 Update stdio_handle.go (#52)
fix
fatal error: concurrent map iteration and map write
2025-03-04 16:35:02 +08:00
Yeuoly 0b41e141af refactor: improve plugin universal event parsing with optional status text (#37) 2025-02-27 16:04:17 +08:00
Yeuoly f006bd7f0b fix: improve error logging and session handling in serverless runtime 2025-02-26 15:50:08 +08:00
Yeuoly 541050b9da refactor: update Redis cache SetNX method to use CBOR encoding 2025-02-25 23:12:05 +08:00
Yeuoly b19140ca23 refactor: optimize plugin declaration caching and encoding (#34) 2025-02-25 20:52:51 +08:00
Masashi Tomooka d239b7fba8 fix environment variables are not propagated to local runtime (#30) 2025-02-19 19:10:58 +08:00
Yeuoly 2e4cfd925b fix: ci 2025-02-17 11:22:43 +08:00
Yeuoly b6fdcabbf0 fix: disable invalid author and formal release 2025-02-17 11:18:31 +08:00
Yeuoly 19dc2d785b feat: support healthz event 2025-02-10 22:34:47 +08:00
Yeuoly 6a54d44142 refactor: rename aws_lambda to serverless 2025-02-10 15:04:24 +08:00
Yeuoly 975f9d5c31 fix: move packager to pkg 2025-02-06 18:16:49 +08:00
Masashi Tomooka c6c882e86a support REDIS_USE_SSL config parameter (#21)
* support REDIS_USE_SSL config parameter

* fix tests

* add tests
2025-01-30 00:32:38 +08:00
Yeuoly 19ee9fc63d fix: allow pipMirrorUrl to be configured through envs (#15) 2025-01-22 17:40:40 +08:00
Yeuoly 7bfb58e330 fix: create to avoid partial plugin installation 2025-01-22 16:07:40 +08:00
Yeuoly 04120a82b6 fix: support verified to launch 2025-01-14 17:09:20 +08:00
Yeuoly 6444214942 Revert "Revert: refactor: serverless connector This reverts commit b413e6c96546cc50b1dbc94731d24f5c51e7a455."
This reverts commit d08d78e8b2.
2025-01-14 16:31:13 +08:00
非法操作 07a53a4fd7 change variable name 2025-01-14 09:16:18 +08:00
非法操作 d44eb84e5a Merge remote-tracking branch 'myfork/p3' into p2 2025-01-14 09:11:34 +08:00
Yeuoly c8f1fd3795 fix: using camelCase 2025-01-13 20:39:56 +08:00
Yeuoly 2eb1e2c09f panic: uninstall plugins 2025-01-13 20:33:29 +08:00
非法操作 468c0743db use environment variable config python init time 2025-01-13 17:29:56 +08:00
非法操作 7b47d8b79a add proxy for runtime 2025-01-13 16:10:13 +08:00
非法操作 b1824d1b67 change default kill time 2025-01-11 23:06:09 +08:00
Yeuoly d08d78e8b2 Revert: refactor: serverless connector This reverts commit b413e6c965. 2025-01-09 14:24:10 +08:00
Yeuoly 8874762c68 fix: adapter to new serverless connector 2025-01-08 18:31:10 +08:00
Yeuoly 51a96959f8 fix: ping serverless connector 2025-01-08 17:05:28 +08:00
Yeuoly a13e952126 feat: simplify getFunctionFilename 2025-01-08 17:00:40 +08:00
Yeuoly b413e6c965 refactor: serverless connector 2025-01-08 16:57:21 +08:00
Yeuoly c26f5f9359 fix: use double pointer to implement setDefaultValue 2025-01-08 01:35:12 +08:00
Yeuoly 4e8d9c4e5e fix: avoid multiple existing message 2025-01-07 22:29:09 +08:00
Yeuoly 430ac8cad9 feat: print detailed local plugin logs 2025-01-06 18:53:07 +08:00
Yeuoly 2795254341 fix: add detailed error message to stdio handler 2025-01-06 18:39:31 +08:00
Yeuoly 15060ee312 refactor: move entities to pkg 2025-01-06 14:52:02 +08:00
Yeuoly 8796edad8c refactor: confused code structure 2025-01-06 14:16:29 +08:00
Yeuoly f6aa10a9bc fix: multiple plugin installation 2024-12-31 19:04:58 +08:00
Yeuoly 0d51a59e9d fix: connection closed unexpectedly 2024-12-27 21:45:04 +08:00
Yeuoly 2efe881e5b fix: windows package 2024-12-18 21:56:59 +08:00
Yeuoly d784e1acfa fix: strict the pakcage size of uncompressed files 2024-12-16 17:12:57 +08:00
Yeuoly a401f9928f optimize: using identity to detect whether to use serverless or local plugin manager 2024-12-16 01:59:04 +08:00
Yeuoly 548adf4c0c refactor: rename agent to agent strategy 2024-12-12 18:26:55 +08:00
Yeuoly 9be865f868 fix: applying agent to orignal pointer is required during Unmarshaling JSON 2024-12-10 00:14:55 +08:00