Implement file-based locking mechanism for worker operations to prevent race conditions

- Added functions for acquiring and releasing locks using a lock file.
- Implemented cleanup of stale locks from crashed processes.
- Modified 'start', 'stop', and 'restart' commands to use the locking mechanism.
- Ensured proper handling of concurrent operations and improved logging.
This commit is contained in:
Alex Newman
2025-12-27 16:58:49 -05:00
parent 6f6cdf221b
commit d8912a7bba
8 changed files with 328 additions and 147 deletions
File diff suppressed because one or more lines are too long