make up_sq
multiple workers/dispatchers
make up_sq_all
if you want to increase workers,
make WORKER=4 up_sq_all
make up_dj
multiple processes
make up_dj_all
if you want to increase workers,
make WORKER=4 up_dj_all
docker compose exec app bash -c 'bundle exec rake sample_job:run[500]'
docker compose exec app bash -c 'bundle exec rake fake_api_job:run[500]'
docker compose exec db bash -c 'mysql handson'
Run the following SQL queries
SELECT adapter, uuid, count(id) AS queue, TIMEDIFF(MAX(completed_at), MIN(completed_at)) AS duration FROM job_completions GROUP BY adapter, uuid;
SELECT adapter, uuid, DATE_FORMAT(completed_at, '%Y-%m-%d %H:%i:%s') as datetime, count(id) AS queue, TIMEDIFF(MAX(completed_at), MIN(completed_at)) AS duration FROM job_completions GROUP BY adapter, uuid, datetime;
make down