forked from mperham/deadlock_retry
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
57 lines (37 loc) · 1002 Bytes
/
README
File metadata and controls
57 lines (37 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
= Deadlock Retry
Deadlock retry allows the database adapter (currently only tested with the
MySQLAdapter) to retry transactions that fall into deadlock. It will retry
such transactions three times before finally failing.
This capability is automatically added to ActiveRecord. No code changes or otherwise are required.
== Installation
Add it to your Rails application by installing the gem:
gem install deadlock_retry
and including a reference to it in your application's Gemfile:
gem 'deadlock_retry'
## Installation
```
cd ~/dev
git clone git@github.com:cdd/deadlock_retry.git
cd deadlock_retry
# build the docker container
make
# manually update the Gemfile.lock
make shell
bundle install
exit
# run the the test suite
make test
```
## Development
```
make guard
```
## Bumping the version
1. Bump the version number in `lib/deadlock_retry/version.rb`
2. Add an entry to `CHANGELOG.md`
3. Run the following so Gemfile.lock is updated:
```
make shell
bundle install
exit
```