Commit 6293cb3857c0bdd89dcc249f7187ab0036c06dc3
1 parent
c4f52f88
Exists in
master
and in
1 other branch
try to fix delayed_jobs
Showing
7 changed files
with
1 additions
and
5 deletions
Show diff stats
app/models/v_libras/request.rb
@@ -73,8 +73,6 @@ class VLibras::Request < ActiveRecord::Base | @@ -73,8 +73,6 @@ class VLibras::Request < ActiveRecord::Base | ||
73 | 73 | ||
74 | logger.debug '[VLibras::Request] Request done' | 74 | logger.debug '[VLibras::Request] Request done' |
75 | end | 75 | end |
76 | - handle_asynchronously :perform_request | ||
77 | - | ||
78 | 76 | ||
79 | private | 77 | private |
80 | def match_files_with_service_type | 78 | def match_files_with_service_type |
lib/api_client/callback_processor.rb
@@ -13,6 +13,5 @@ class ApiClient::CallbackProcessor | @@ -13,6 +13,5 @@ class ApiClient::CallbackProcessor | ||
13 | end | 13 | end |
14 | 14 | ||
15 | Rails.logger.debug "[VLibras::Callback] Notifying websocket channel" | 15 | Rails.logger.debug "[VLibras::Callback] Notifying websocket channel" |
16 | - WebsocketRails[:requests_update].trigger(:callback_called, { :owner_id => request.owner_id }) | ||
17 | end | 16 | end |
18 | end | 17 | end |
lib/api_client/client.rb
@@ -8,7 +8,7 @@ module ApiClient::Client | @@ -8,7 +8,7 @@ module ApiClient::Client | ||
8 | 8 | ||
9 | def self.submit(request, files) | 9 | def self.submit(request, files) |
10 | options = process_params(request, files) | 10 | options = process_params(request, files) |
11 | - | 11 | + Rails.logger.debug "[VLibras::Submit] Join to submit a new request" |
12 | Delayed::Worker.logger.debug "[VLibras::Request] Options: #{options}" | 12 | Delayed::Worker.logger.debug "[VLibras::Request] Options: #{options}" |
13 | response = self.post(ApiClient::API_URL, options) | 13 | response = self.post(ApiClient::API_URL, options) |
14 | Delayed::Worker.logger.debug "[VLibras::Request] Status #{response.response.code}" | 14 | Delayed::Worker.logger.debug "[VLibras::Request] Status #{response.response.code}" |
@@ -24,7 +24,6 @@ module ApiClient::Client | @@ -24,7 +24,6 @@ module ApiClient::Client | ||
24 | ensure | 24 | ensure |
25 | # FIXME: Running on another thread. Websocket not working :( | 25 | # FIXME: Running on another thread. Websocket not working :( |
26 | Delayed::Worker.logger.debug "[VLibras::Request] Sending message to websocket channel" | 26 | Delayed::Worker.logger.debug "[VLibras::Request] Sending message to websocket channel" |
27 | -# WebsocketRails[:requests_update].trigger(:video_submitted, { :owner_id => request.owner_id }) | ||
28 | end | 27 | end |
29 | 28 | ||
30 | 29 |