TestJob executes for 2 seconds and creates file named as current time with microseconds in runtime/message
directory.
Clone repository:
git clone [email protected]:silverslice/yii2-queue-redis-test.git
cd yii2-queue-redis-test
Build docker images and run composer install:
make init
Start 4 queue workers:
make up queue=4
Send 6 test messages (in the second terminal session):
make send count=6
Go to the first terminal session and check queue worker output.
Check runtime/message
directory to understand how long the jobs were running.
Stop and remove containers after tests:
make clean