prima-twig 0.34.1 → 0.34.2

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
  SHA1:
3
- metadata.gz: f698b265786fdf1590846a96d1ce91aacbaff2c9
4
- data.tar.gz: 91e0a08c5887af9228b35a51830342ad6ad65bad
3
+ metadata.gz: d29e5e47cfdc63bc1bb336ed8cdbadbf4553e04f
4
+ data.tar.gz: 36ab8b43ff06844898f43425233eb1a58d9be6ed
5
5
  SHA512:
6
- metadata.gz: 9bfe51334a2281d007c040e1e4b53db09bf69522233df38e9c8989c53e0a67059ec1d5ef3c2617d0736fad2ad2cb14512080a7fd04a42ad14ee4771548d849d7
7
- data.tar.gz: cddb3f112fb0830e7046242dec868c92b89b0d8602d9b42901c5e84954c88c2a4886bceda4cae7985f020d588e5910154a45162b8e5e9a71426db1cfc4534ba7
6
+ metadata.gz: 30be37a00870ae231faca584e8e8427f1e8836f9a284b0775b14bf9d3727282eaa6b1f39d0aae19467437f3aef9f8a4ecebed0b23c40c3eb0f47477c1c9b38ce
7
+ data.tar.gz: 3c69f04f590ac193790ab24d6562b5f54cd83c45d312f3bd31e455e52356722e26cc8ab162a6d2172f3500650ffebed2d48b56afca9b6cdb198ab39c625439c1
@@ -303,7 +303,7 @@ class Release
303
303
  output "Attendo 10 secondi per poter eliminare il cluster ECS"
304
304
 
305
305
  while stacks_to_delete.length > 0
306
- sleep 10
306
+ sleep 13
307
307
  stacks_to_delete.each do |stack_name|
308
308
  stacks_to_delete = stacks_to_delete - [stack_name] unless stack_exists?(stack_name)
309
309
  end
@@ -90,7 +90,7 @@ module PrimaAwsClient
90
90
 
91
91
  def wait_for_stack_ready(stack_name, failed_statuses = ['CREATE_FAILED', 'ROLLBACK_IN_PROGRESS', 'ROLLBACK_FAILED', 'DELETE_IN_PROGRESS', 'DELETE_FAILED', 'DELETE_COMPLETE', 'UPDATE_ROLLBACK_FAILED', 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS'])
92
92
  ready = false
93
- sleep_seconds = 10
93
+ sleep_seconds = 13
94
94
  output "Attendo che lo stack #{stack_name} finisca di essere inizializzato...\n".yellow
95
95
  while !ready
96
96
  ready = true if stack_ready?(stack_name, failed_statuses)
@@ -126,10 +126,15 @@ module PrimaAwsClient
126
126
  end
127
127
 
128
128
  def stack_ready?(stack_name, failed_statuses = ['CREATE_FAILED', 'ROLLBACK_IN_PROGRESS', 'ROLLBACK_FAILED', 'DELETE_IN_PROGRESS', 'DELETE_FAILED', 'DELETE_COMPLETE', 'UPDATE_ROLLBACK_FAILED', 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS'])
129
- resp = cf_client.describe_stacks(
130
- stack_name: stack_name
131
- )
132
- stack_status = resp.stacks[0].stack_status
129
+ begin
130
+ resp = cf_client.describe_stacks(
131
+ stack_name: stack_name
132
+ )
133
+ stack_status = resp.stacks[0].stack_status
134
+ rescue Aws::CloudFormation::Errors::Throttling => e
135
+ print 'Throttling'.red; STDOUT.flush
136
+ return false
137
+ end
133
138
  raise "The stack #{stack_name} errored out" if failed_statuses.include? stack_status
134
139
  ['CREATE_COMPLETE', 'UPDATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE', 'ROLLBACK_COMPLETE'].include? stack_status
135
140
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.1
4
+ version: 0.34.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino