Skip to content

Commit

Permalink
refactor: enhance process management and error handling
Browse files Browse the repository at this point in the history
Major improvements across worker system:

- Processes.php:
  * Add robust process termination with timeout
  * Improve process state monitoring
  * Add process safety checks
  * Clean up command execution methods
  * Add validation for process actions
  * Add error handling for system commands

- WorkerSafeScriptsCore.php:
  * Implement batch processing for worker operations
  * Add timeout control for worker operations
  * Improve logging and monitoring
  * Add safety checks for concurrent operations
  * Add process locking mechanism

- WorkerBase.php:  
  * Add worker state management
  * Improve signal handling
  * Add resource limits control
  * Enhance logging system
  * Add proper cleanup on shutdown

- WorkerModelsEvents.php:
  * Add action timeout control
  * Add concurrency protection
  * Improve error handling
  * Optimize reload operations
  * Add better job processing
  • Loading branch information
jorikfon committed Jan 6, 2025
1 parent 2a83e2d commit 38cefbd
Show file tree
Hide file tree
Showing 4 changed files with 1,325 additions and 470 deletions.
Loading

0 comments on commit 38cefbd

Please sign in to comment.