File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,6 @@ docker_deploy_gcp:
282
282
@echo " make docker_deploy_gcp TAG=v1.02 ENV=PROD"
283
283
make docker_deploy_build TAG=${TAG}
284
284
make docker_deploy_push TAG=${TAG}
285
- make set_new_tag ENV=${ENV} TAG=${TAG}
286
285
287
286
docker_deploy_build :
288
287
@echo " tag usada:${TAG} "
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ def make_instance_gcp_snapshot_backup(
277
277
else :
278
278
raise e
279
279
280
+ count = 0
280
281
if response .status_code < 400 :
281
282
while code != 200 :
282
283
sleep (20 )
@@ -287,6 +288,12 @@ def make_instance_gcp_snapshot_backup(
287
288
break
288
289
if snap_response .status_code >= 400 :
289
290
raise error
291
+ if count >= 90 :
292
+ errormsg = "Timeout"
293
+ set_backup_error (infra , snapshot , errormsg )
294
+ raise Exception (errormsg )
295
+ else :
296
+ count += 1
290
297
code = snap_response .status_code
291
298
292
299
snapshot .done (snap_status )
You can’t perform that action at this time.
0 commit comments