Additional test tools
Test Workers
- Open one of the Testrabbit Pro apps, or create a new one
-
Create one nonstop job with SIGTERM - 10 sec
artisan queue:work --sleep=5
-
Create one cronjob
artisan schedule:run
-
Open a tail for the worker logs to watch for output
ssh testrabbit-us1@log.us1.frbit.com tail source:worker
-
Run these ssh commands to create worker jobs
ssh testrabbit-us1@deploy.us1.frbit.com "php artisan test:job sleep -C 5"
ssh testrabbit-us1@deploy.us1.frbit.com "php artisan test:job error -C 10"
Test cli commands
# Creates two dummy job with StdOut
php artisan test:job sleep -C 2
# Creates 10 jobs random with StdErr + Exceptions
php artisan test:job error -C 10
# Creates a jobs some memory consumption (64,512MB)
php artisan test:job memory --args=64
php artisan test:job memory --args=512
# Mongo connection test (deploy)
php artisan test:mongo
# Mongo connection test (Worker)
php artisan test:mongo --queued
# Handle queued jobs
php artisan queue:work
php artisan queue:cleanup
# Run migrations (if any)
php artisan migrate --force