Cu 86evxtxeu cap nhat logic chay runtime multiple process cho phien ban tiep theo sang pham#81
Open
dev-pnsang wants to merge 42 commits intodevelopfrom
Conversation
- SubprocessInstanceManager: merge config into cache and save to storage before syncing worker so PATCH and POST /lines/batch return 200 and GET /lines shows new data even when worker fails or times out - updateInstance (PATCH) and updateInstanceFromConfig: persist first, then sync worker best-effort; return true when persist succeeds - Add mergeConfigIntoCacheAndSave(); treat saveInstance failure as non-fatal (cache already updated) - Worker hotSwapPipeline: use mergeJsonInto for tempConfig to avoid overwriting full AdditionalParams when PATCH sends only CrossingLines - CrossingLines ID: normalize on write - generate UUID once for lines without id, store in config for whole instance lifecycle; user- provided ids are kept as-is (normalizeCrossingLinesIds in merge path) - lines_handler: comment loadLinesFromConfig id behavior; saveLinesToConfig already normalizes ids before save - support/: add rtmp_fin_wrapper (close_fin) Made-with: Cursor
Made-with: Cursor
…terval) Made-with: Cursor
… reload callback Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
- Allow type 'File' in POST /v1/core/instance/{instanceId}/input (same as SecuRT)
- Set Input.media_type=File, Input.uri and AdditionalParams.FILE_PATH
- Update instance_handler_input_stream.cpp and ai_handler.cpp
- OpenAPI: document File type, add examples, extend SetInputRequest enum
Made-with: Cursor
…al test - Add bind_mode in system_config: 'local' -> 127.0.0.1, 'public' -> 0.0.0.0 - config.json.example and ENVIRONMENT_VARIABLES: bind vs public docs - OpenAPI (en/vi): bind_mode in examples, Server bind & restart in info - Manual test: CONFIG_BIND_AND_RESTART_MANUAL_TEST.md for non-dev (curl, Swagger) - README manual + api-specs: link to bind/restart guide Made-with: Cursor
…I guide
- System log config: GET/PUT /v1/core/log/config (enabled, log_level, api_enabled, instance_enabled, sdk_output_enabled)
- Per-instance log: GET/PUT /v1/core/instance/{id}/log/config, logs in logs/instance/<id>/
- apply_logging_config, InstanceLoggingConfig, LogManager instance dirs
- config.json.example: system.logging; docs/LOGGING.md
- tests/manual: LOG_CONFIG_MANUAL_TEST.md, LOG_CONFIG_API_GUIDE.md; README updated
Made-with: Cursor
…verification - LogManager: add getBaseDir() for actual runtime log directory - GET/PUT /v1/core/log/config: add current_log_dir (actual path in use), keep log_dir (configured); _description for both - Docs: LOG_CONFIG_API_GUIDE.md, LOG_CONFIG_MANUAL_TEST.md mention current_log_dir and how to verify log location Made-with: Cursor
…-status - Add system.monitoring.max_cpu_percent, max_ram_percent (0=disabled); reject new instance creation with 503 when system CPU or RAM >= limit - Add GET /v1/core/system/resource-status: limits (instance, cpu%, ram%, thread_num, min_threads, max_threads), current usage, over_limits - Add SystemMetrics (getSystemCpuUsagePercent, getSystemRamUsagePercent) and use in create/quick instance handlers for limit check - Expose thread limits in resource-status; SystemInfoHandler.setInstanceManager - Docs: SERVER_SETTINGS_AND_MONITORING_API.md, API_document.md, OpenAPI core_system_resource_status.yaml - Manual test: SERVER_SETTINGS_MONITORING_MANUAL_TEST.md with config, resource-status, max thread steps; README updated Made-with: Cursor
- Add manual test scenarios for: Health/Version/License, Instance FPS, Model, Log list, Node, Solution, SecuRT Area/Lines/Instance, Core Instance API - Add GROUPS_MANUAL_TEST, VIDEO_MANUAL_TEST, FONT_MANUAL_TEST, CORE_AI_MANUAL_TEST - All docs use concrete URLs (http://localhost:8080/...) without shared variables - Update README with full API index and mapping to manual test files Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
…sdk, config.json fallback, fix .PHONY Made-with: Cursor
…_EXECUTION_MODE=subprocess Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
…vxtxeu_Cap-nhat-logic-chay-runtime-multiple-process-cho-phien-ban-tiep-theo_Sang-Pham_2
…ate exit - jams/lines/securt_line/stops handlers: align subprocess/worker flow - frame_processor, instance_storage, subprocess_instance_manager updates - worker_supervisor, worker_handler_handlers: retry/stop logic - main: EDGE_AI_SIGABRT_IMMEDIATE_EXIT=1 to exit on heap corruption (dev) - docs: ARCHITECTURE, DEVELOPMENT troubleshooting, ENVIRONMENT_VARIABLES Made-with: Cursor
…ne_demo' - en/vi paths core_instance_instanceid.yaml: instanceId example - Regenerated en/vi openapi.yaml via merge_openapi Made-with: Cursor
…untime-multiple-process-cho-phien-ban-tiep-theo_Sang-Pham_2 Cu 86evxtxeu cap nhat logic chay runtime multiple process cho phien ban tiep theo sang pham 2
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.