A simple job management system to handle job queues with priorities, implemented in Python.
- Add jobs to a queue with priority
- Check the status of jobs
- Execute jobs in the queue based on priority
- Persist job states across restarts
- Run jobs in the background using
nohup
andscreen
python3 job_manager.py add "your_command_here" [priority]
python3 job_manager.py status job_id
./run_jobs.sh
# Add a job with priority 10
python3 job_manager.py add "echo 'Hello, High Priority World!'" 10
# Check the status of the job
python3 job_manager.py status 1
# Run the job manager to process the queue
./run_jobs.sh
- Python 3.x
screen
andnohup
installed
- Errors are logged in the
context.txt
file. - Jobs that fail are marked as
failed
and their status is persisted.
This project is licensed under the MIT License.