Skip to content

Commit

Permalink
Add checkpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita8 committed Sep 13, 2023
1 parent 0f91f07 commit 78fa138
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ruby/lib/ci/queue/redis/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def acknowledge(test)

def requeue(test, offset: Redis.requeue_offset)
puts "----- start requeue "
puts "inside worker requeue"
test_key = test.id
raise_on_mismatching_test(test_key)
global_max_requeues = config.global_max_requeues(total)
Expand Down
1 change: 1 addition & 0 deletions ruby/lib/ci/queue/static.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def max_test_failed?
end

def requeue(test)
puts "inside static"
test_key = test.id
return false unless should_requeue?(test_key)

Expand Down
1 change: 1 addition & 0 deletions ruby/lib/rspec/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def report_failure!
end

def requeue
puts "inside rspec"
@queue.requeue(@example)
end

Expand Down

0 comments on commit 78fa138

Please sign in to comment.