You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enables php-resque functionality in Live Helper Chat
Requirements
LHC 2.52v
Make sure background worker is running under same user as your web server.
Copy lhcphpresque/doc/resque.php to main folder lhc_web. Just root folder where Live Helper Chat is installed.
Copy lhc-php-resque/lhcphpresque to extension/lhcphpresque
Activate extension in settings/settings.ini.php extensions section.
'extensions' =>
array (
'lhcphpresque'
),
Make sure you have composer dependencies installed in main app folder.
cd lhc_web/ && composer update
Make sure you copied extension/lhcphpresque/settings/settings.ini.default.php to extension/lhcphpresque/settings/settings.ini.php. Edit queues and add custom queues you have from other extension.
To start resque worker for debug just use. You can decrease interval how often worker checks for new jobs by settings interval value to 1
Once you are happy how everything works. Before cronjob setup make sure you check their paths. First cronjob ensures that worker is started upon reboot. Second cronjob restarts worker every day (I suggest to keep it to avoid any memory leaks in php). Third one checks do we need to restart php resque or not. After code changes workers has to be restarted. Easiest way to restart is to create a lock file.