Commit 685b8092 authored by danielvincent's avatar danielvincent

resque requires a job to be assigned to a queue. enable resque logging on posting to a hub

parent c16d0c46
......@@ -3,9 +3,9 @@
# the COPYRIGHT file.
#
module Jobs
class PostToService
class PostToService
extend ResqueJobLogging
@queue = :http
@queue = :http_service
def self.perform(service_id, post_id, url)
service = Service.find_by_id(service_id)
......
......@@ -4,6 +4,9 @@
module Jobs
class PublishToHub
extend ResqueJobLogging
@queue = :http_service
def self.perform(sender_public_url)
PubSubHubbub.new(AppConfig[:pubsub_server]).publish(sender_public_url)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment