michelsalib / BCCResqueBundle

The BCC resque bundle provides integration of php-resque to Symfony2. It is inspired from resque, a Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later.
122 stars 91 forks source link

Configuring redis with DSN or password #98

Open KeKs0r opened 10 years ago

KeKs0r commented 10 years ago

Hi,

I have cloud infrastructure which only provides a DSN string as my redis credentials. SNCRedisBundle can easily work with it, but I am slightly confused on how to get this working on BCCResque. I think php-resque can handle this in the meantime: https://github.com/chrisboulton/php-resque/blob/master/lib/Resque/Redis.php#L116 Unfortunately this Bundle is using rather old versions of php-resque.

Is there a workaround or chance to update dependencies?

ruudk commented 10 years ago

Submit a PR :)

KeKs0r commented 10 years ago

This can only be done by updating dependencies to php-resque > 1.2 ... I don't feel entitled to change the dependency to a development branch. I have got it working by having this bundle as well as php-resque in their master version. Which is probably not best solution for production, but it was the only workaround for me.

mrbase commented 10 years ago

The only way to have the master version of this bundle work is to use master of both this and php-resque at the moment, so submitting a PR should not be an issue.

cdaguerre commented 10 years ago

Hi. Just in case this can be of any help: I had the same issue as @KeKs0r so I made a fork to get Redis auth working quick and dirty. Not sure if I needed to update dependencies to get this working though: https://github.com/cdaguerre/BCCResqueBundle I was planning to clean it up and make a PR later but I won't have the time in the near future. By the way, I've been using my fork in production for almost a month now and didn't have any problems.