mirror of
https://github.com/archtechx/tenancy-queue-tester.git
synced 2025-12-12 19:04:03 +00:00
update all sleep times to 3s
This commit is contained in:
parent
716f7a524f
commit
35dd6a3888
1 changed files with 2 additions and 2 deletions
4
test.sh
4
test.sh
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue