Class: GitMiner::Dispatch::SimpleDispatch

Inherits:
AbstractDispatch show all
Defined in:
lib/git_miner/dispatch/simple_dispatch.rb

Constant Summary collapse

IDENTIFIER =
"Simple"

Constants inherited from AbstractDispatch

AbstractDispatch::BATCH_SIZE

Instance Method Summary collapse

Methods inherited from AbstractDispatch

#execute, #initialize

Constructor Details

This class inherits a constructor from GitMiner::Dispatch::AbstractDispatch

Instance Method Details

#performObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/git_miner/dispatch/simple_dispatch.rb', line 6

def perform
  loop do
    result = @engine.mine(
      author_offset: @group_manager.author_offset,
      committer_offset: @group_manager.committer_offset,
      qty: @group_manager.batch_size
    )

    unless result
      @group_manager.advance!
      next
    end

    return result
  end
end