Skip to content

Commit

Permalink
Remove all reference to workers from executing API code
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaray committed Jan 1, 2018
1 parent a62b538 commit ea71fb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions application/services/summarize_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@ def clone_repo(input)
Right(input)
else
clone_request_msg = clone_request_json(input)
# TODO:
# - send message to worker using notify_clone_listeners?
# - send repo to worker and let it find gitrepo
# CloneRepoWorker.perform_async(clone_request_msg)
notify_clone_listeners(clone_request_msg)
Left(Result.new(:processing, { id: input[:id] }))
Left(Result.new(:processing, id: input[:id]))
end
rescue StandardError => error
puts "ERROR: SummarizeFolder#clone_repo - #{error.inspect}"
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

folders = %w[config infrastructure domain application workers]
folders = %w[config infrastructure domain application]
folders.each do |folder|
require_relative "#{folder}/init.rb"
end

0 comments on commit ea71fb0

Please sign in to comment.