feat: Add stand-alone job management python script for jobs AI-Toolkit cant stop/kill #639
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.
This lets a user fix jobs issues that AI-toolkit cannot stop/kill
If the system crashes or there's a power outage, ai-toolkit seems to be unable to recover as it thinks there are jobs still active and processing and it gets stuck unable to stop them so training can continue. This is a simple external python script to manage jobs in the databse since the application itself cannot do so.
Usage Example:
[q5@apollo ai-toolkit]$ python ./jobs.py --help
Usage:
python jobs.py → list all jobs
python jobs.py --hung → list only stuck/running jobs
python jobs.py --stop → mark a job as stopping
python jobs.py --kill → forcibly complete a job
python jobs.py --delete → remove a job from the database