heroku_hatchet 4.0.11 → 4.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88d71072269c188d06f7345c7078e1ab95b0fd7b771aab5655472c628ffc6566
4
- data.tar.gz: 6d3a2454a0415dc58943db21c5c8c598741769a93bdec16bb286cbe074533fe0
3
+ metadata.gz: 721106d8d9d4a9bcbad680de78cf4d71fe1f35091a23170801df815e79dd465a
4
+ data.tar.gz: d617e9d31847ff2aa30129f338a967b6c621853e8298c6e488fc473a1d2793c3
5
5
  SHA512:
6
- metadata.gz: 75cfc455cbab6ada50e50beee20dcb89a24b354f415b958b81e0c5617ea5ab1a588aed16249a510b59c81ebf1286b7259b7a0059af2e53aa18a66374efe4d50c
7
- data.tar.gz: '04839387ca32472a1e4125dee656833c0c9f17fec8dad4cf802a2b4c6be9b1066e90fb3836a5ac7931f61ada88adf53db146ded46bbcfe47f715adf2e9b75455'
6
+ metadata.gz: 1a6410e04d8a3f585f12e7ed067191314cdb208a5b6a0916ce0ac79595dbaf75d1522c74c8621ac27aa7571945400aded90fc1640737a5a23dbc4880ea283d23
7
+ data.tar.gz: 39812cdaa659c3759b53fea93afb1bd4b3a893c8945f4d8804774510043433fed8d4204def577e2930d13e22bfd332864b51ab2fba214fe02ab80fcfa2f10557
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## HEAD
2
2
 
3
+ ## 4.0.12
4
+
5
+ - Fix deadlock when a single process kills the same app twice (https://github.com/heroku/hatchet/pull/63)
6
+ - Add ability to debug deadlock with HATCHET_DEBUG_DEADLOCK env var.
7
+
8
+ ## 4.0.11
9
+
3
10
  - Fix logic in rake task (https://github.com/heroku/hatchet/pull/62)
4
11
 
5
12
  ## 4.0.10
data/lib/hatchet.rb CHANGED
@@ -31,4 +31,13 @@ module Hatchet
31
31
  raise "Attempting to find current branch name. Error: Cannot describe git: #{out}" unless $?.success?
32
32
  out
33
33
  end
34
- end
34
+
35
+ if ENV["HATCHET_DEBUG_DEADLOCK"]
36
+ Thread.new do
37
+ loop do
38
+ sleep ENV["HATCHET_DEBUG_DEADLOCK"].to_f # seconds
39
+ Thread.list.each { |t| puts "=" * 80; puts t.backtrace }
40
+ end
41
+ end
42
+ end
43
+ end
@@ -52,6 +52,7 @@ module Hatchet
52
52
  body = e.response.body
53
53
  if body =~ /Couldn\'t find that app./
54
54
  puts "#{@message}, but looks like it was already deleted"
55
+ mutex.close # ensure only gets called on block exit and not on `retry`
55
56
  retry
56
57
  end
57
58
  raise e
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "4.0.11"
2
+ VERSION = "4.0.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_hatchet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.11
4
+ version: 4.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-30 00:00:00.000000000 Z
11
+ date: 2019-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: platform-api