Add Aliyun SDK dependencies and implement TTL configuration for ECS instances

- Added new dependencies for Aliyun ECS SDK in requirements.txt and setup.py to support instance management features.
- Introduced a new config module to handle TTL settings for ECS instances, allowing for auto-termination based on environment variables.
- Updated the manager to utilize TTL settings, including scheduling instance termination with proper error handling and logging.
- Maintained existing code logic while enhancing functionality for improved instance lifecycle management.
This commit is contained in:
Timothyxxx
2025-08-22 23:28:58 +08:00
parent b3e1c0344d
commit ebda4d8b3f
5 changed files with 114 additions and 35 deletions

View File

@@ -105,6 +105,10 @@ setup(
"dotenv",
"tldextract",
"anthropic",
# Aliyun ECS SDK dependencies
"alibabacloud_ecs20140526",
"alibabacloud_tea_openapi",
"alibabacloud_tea_util",
],
cmdclass={
'install': InstallPlaywrightCommand, # Use the custom install command