1
0
Fork 0
mirror of https://github.com/archtechx/tenancy-queue-tester.git synced 2025-12-12 08:44:04 +00:00

update all sleep times to 3s

This commit is contained in:
Samuel Štancl 2024-12-31 07:22:09 +01:00
parent 716f7a524f
commit 35dd6a3888

View file

@ -54,13 +54,13 @@ without_queue_assertions() {
dispatch_central_job() { dispatch_central_job() {
echo "Dispatching job from central context..." echo "Dispatching job from central context..."
docker compose exec -T queue php artisan tinker --execute "dispatch(new App\Jobs\FooJob);" docker compose exec -T queue php artisan tinker --execute "dispatch(new App\Jobs\FooJob);"
sleep 5 sleep 3
} }
dispatch_tenant_job() { dispatch_tenant_job() {
echo "Dispatching job from tenant context..." echo "Dispatching job from tenant context..."
docker compose exec -T queue php artisan tinker --execute "App\\Models\\Tenant::first()->run(function () { dispatch(new App\Jobs\FooJob); });" docker compose exec -T queue php artisan tinker --execute "App\\Models\\Tenant::first()->run(function () { dispatch(new App\Jobs\FooJob); });"
sleep 5 sleep 3
} }