I am getting this error
ArgumentError (name_or_domain is required for info):
I am using delayed_job hirefire and heroku. Here are the lines from my code
Notifier.delay.notify(self.artist, commented_on_artist, self.project, self.work_id)
When I use the following code everything works perfect
Notifier.delay(self.artist, commented_on_artist, self.project, self.work_id).deliver
The error is coming from Client.rb in heroku gem from this function
# Show info such as mode, custom domain, and collaborators on an app.
def info(name_or_domain)
raise ArgumentError.new("name_or_domain is required for info") unless name_or_domain
name_or_domain = name_or_domain.gsub(/^(http:\/\/)?(www\.)?/, '')
doc = xml(get("/apps/#{name_or_domain}").to_s)
attrs = hash_from_xml_doc(doc)[:app]
attrs.merge!(:collaborators => list_collaborators(attrs[:name]))
attrs.merge!(:addons => installed_addons(attrs[:name]))
end
I just tried out a few things and realized the issue is not with delayed_job it is with hirefire, If i remove the hirefire gem the job gets queued, and I i run the worker manually all works like a charm. I just can’t get hirefire to work.
Have you looked at the Cedar stack patch? https://gist.github.com/1082673