@extends('backend.background_tasks.layout') @section('title', __('Scheduler & Queue Guide')) @section('bt_title', __('Scheduler & Queue Guide')) @section('bt_icon', 'schedule') @section('bt_subtitle', __('Instructions for configuring the Laravel scheduler and queue workers on your server.')) @section('bt_content')
* * * * * cd {{ base_path() }} && php artisan schedule:run >> /dev/null 2>&1
php artisan queue:work --queue=default --tries=3 --timeout=120
| @lang('Signature') | @lang('Frequency') | @lang('Description') |
|---|---|---|
wallet-earn:process |
@lang('Every minute') | @lang('Process due Wallet Earn reward payouts and matured principal returns.') |
p2p:promotions:expire |
@lang('Every minute') | @lang('Expire active P2P offer promotions that passed their end time.') |
p2p:orders:expire |
@lang('Every minute') | @lang('Expire pending P2P orders that passed expiry time and refund escrow.') |
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php {{ base_path() }}/artisan queue:work --sleep=3 --tries=3 --timeout=120
autostart=true
autorestart=true
user=www-data
numprocs=1
redirect_stderr=true
stdout_logfile={{ storage_path('logs/worker.log') }}