Skip to content

Commit d608031

Browse files
committed
Make retries writeable so that we can assign retries += 1
1 parent e260afb commit d608031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/solid_queue/semaphore.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def signal
3434
end
3535

3636
private
37-
attr_reader :job, :retries
37+
attr_accessor :job, :retries
3838

3939
def attempt_creation
4040
Semaphore.create!(key: key, value: limit - 1, expires_at: expires_at)

0 commit comments

Comments
 (0)