I fixed this in a slightly different way; I changed
tube = opts.fetch(:tube, app_version)
to
tube = opts.fetch(:tube, (app_version or DEFAULT_TUBE))
Let me know if it works for you!
kr
I'm thinking of moving async_observer to a git repo on github. Would
that make it easier to follow?
Does anyone have any objections to moving async_observer to git?
Rails has support for installing plugins from git as of d07d6e9 (aka
svn 9049), but it's not included in any rails release yet AFAIK.
> I don't think it makes sense for async observer to specify the tube
> based on the app version. I've modified beanstalk client for my needs
> so that you can specify a default tube for reading and writing in your
> config. You can specify the app version as the default tube if you'd
> like, or you can specify some other identifier that includes the app
> version.
I'd like to just rename app_version to default_tube or something. As
of ad4f36e it's not used for anything else. Would that work?
> In my case, I've got a few small apps I want to run through a single
> beanstalk instance without their jobs conflicting.
Makes sense.
kr