Skip to content

Commit

Permalink
Attempt the Retryable error in the JobCrucible for 2 plus the depth n…
Browse files Browse the repository at this point in the history
…umber of permutations
  • Loading branch information
fractaledmind committed Nov 1, 2024
1 parent d5c322f commit ccf84d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/job_crucible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(job, variations: 100, seed: nil, depth: 1)
end

def run(&callback)
@template.class.retry_on RetryableError, attempts: @depth + 1
@template.class.retry_on RetryableError, attempts: @depth + 2

debug "Running #{variants.size} simulations of the total #{permutations.size} possibilities..."

Expand Down Expand Up @@ -159,7 +159,7 @@ def all_executed?
end
end

def to_s
def inspect
@breakpoints.flat_map do |location, configs|
configs.keys.map { |position| "#{position}-#{location}" }
end.join("|>")
Expand Down

0 comments on commit ccf84d9

Please sign in to comment.