-
Notifications
You must be signed in to change notification settings - Fork 91
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
fix configuration parameters #45
base: master
Are you sure you want to change the base?
Conversation
Hey @tonypiper is this PR ok ? |
I've not had a chance to test it yet, and possibly won't this week now - perhaps the author of the original PR could check it? Tony Piper Antiphonal Ltd On Wednesday, 3 April 2013 at 13:16, Michel Salib wrote:
|
In my case the worker gets the configurations from correctly from the config:
My problem is that the version in the composer (1.2) doesn't support the REDIS_BACKEND_DB or the PREFIX, that's why it doesn't work. So you need to change the composer and make the commands compatible with the new version if you want to use this parameters. |
I have a branch that I use for this: https://github.com/lightglitch/php-resque/tree/branch-1.2
@tonypiper and @michelsalib How are you able to use this parameters on your version? |
I don't think this PR is correct because it doesn't change anything to the setParameter calls here: https://github.com/michelsalib/BCCResqueBundle/blob/master/DependencyInjection/BCCResqueExtension.php#L28:L32 |
The problem is that referenced version of php-resque and php-resque-scheduler not set the database correctly. You need to replace the following lines from vendor/chrisboulton/php-resque-scheduler/resque-scheduler $REDIS_BACKEND = getenv('REDIS_BACKEND');
if(!empty($REDIS_BACKEND)) {
Resque::setBackend($REDIS_BACKEND);
} with $REDIS_BACKEND = getenv('REDIS_BACKEND');
$REDIS_BACKEND_DB = getenv('REDIS_BACKEND_DB');
if(!empty($REDIS_BACKEND)) {
if (empty($REDIS_BACKEND_DB))
Resque::setBackend($REDIS_BACKEND);
else
Resque::setBackend($REDIS_BACKEND, $REDIS_BACKEND_DB);
} |
I also have a fork of php-resque-scheduler with that fixed. |
Hi, I just made a cleanup of the PRs, can we handle this issue now ? |
after the merge of #58 we should be able to test the patch |
is this PR an issue anymore ? |
these were incorrectly defined in #37 and reported in #44. I'm unable to test this at the moment - will check next week.