php-resque icon indicating copy to clipboard operation
php-resque copied to clipboard

Events beforePerform, afterPerform not working?

Open vkatochka opened this issue 3 years ago • 1 comments

Example of code:

function func10()
{
	_echo('before');
}

function func20()
{
	_echo('after');
}

	
#
Resque::setBackend('localhost:6379');

#
Resque_Event::listen('beforePerform','func10');
Resque_Event::listen('afterPerform' ,'func20');

#
Resque::enqueue('default','worker',[]);
  • PHP-Resque version: 1.3.6
  • PHP version: PHP 7.2.24
  • Redis version: 5.0.9
  • Operating System and version: Ubuntu 18.04.4

vkatochka avatar Aug 01 '20 17:08 vkatochka

The second argument of Resque::enqueue method call needs to be a valid classname.

iVegas avatar Dec 08 '20 15:12 iVegas