509910b89f
This moves the code used for processing commits from GitPushService to its own Sidekiq worker: ProcessCommitWorker. Using a Sidekiq worker allows us to process multiple commits in parallel. This in turn will lead to issues being closed faster and cross references being created faster. Furthermore by isolating this code into a separate class it's easier to test and maintain the code. The new worker also ensures it can efficiently check which issues can be closed, without having to run numerous SQL queries for every issue. |
||
---|---|---|
.. | ||
base_service.rb | ||
close_service.rb | ||
create_service.rb | ||
move_service.rb | ||
reopen_service.rb | ||
update_service.rb |