Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
685b8092
Commit
685b8092
authored
Jan 08, 2011
by
danielvincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resque requires a job to be assigned to a queue. enable resque logging on posting to a hub
parent
c16d0c46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
app/models/jobs/post_to_service.rb
app/models/jobs/post_to_service.rb
+2
-2
app/models/jobs/publish_to_hub.rb
app/models/jobs/publish_to_hub.rb
+3
-0
No files found.
app/models/jobs/post_to_service.rb
View file @
685b8092
...
...
@@ -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
)
...
...
app/models/jobs/publish_to_hub.rb
View file @
685b8092
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment