-
Download and extract the task-queue folder
-
Open terminal and navigate to the folder:
cd path/to/task-queue -
Initialize the database:
bash scripts/init_db.sh
Open 3 terminal windows in the task-queue directory.
Terminal 1 - Start Workers:
bash scripts/start_workers.sh 5Terminal 2 - Start Monitor:
python3 src/monitor.pyTerminal 3 - Submit Tasks:
python3 examples/submit_tasks.pySubmit more tasks:
python3 examples/submit_tasks.pyRun load test:
python3 scripts/load_test.py --tasks 1000 --workers 5Interactive demo:
python3 examples/interactive_demo.py"ModuleNotFoundError"
- Make sure you're in the task-queue directory
- Try
python3instead ofpython - Path fixes are included in all files
"Database is locked"
- Too many workers - reduce to 5
- Or increase POLL_INTERVAL in config.py
Workers not processing
- Check database exists:
ls queue.db - Restart workers (Ctrl+C then start again)
-
Run load test and record metrics:
python3 scripts/load_test.py --tasks 5000 --workers 10
-
Update RESUME_BULLETS.md with your actual numbers
-
Push to GitHub:
git init git add . git commit -m "Initial commit: Distributed task queue" git remote add origin https://github.com/YOUR_USERNAME/task-queue.git git push -u origin main
README.md- Full project documentationQUICKSTART.md- Quick referencedocs/architecture.md- Technical detailsRESUME_BULLETS.md- Resume suggestions