Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events beforePerform, afterPerform not working? #40

Open
vkatochka opened this issue Aug 1, 2020 · 1 comment
Open

Events beforePerform, afterPerform not working? #40

vkatochka opened this issue Aug 1, 2020 · 1 comment
Labels

Comments

@vkatochka
Copy link

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
@iVegas
Copy link
Contributor

iVegas commented Dec 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants