• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Bash : fail the build after 5 minutes

Resolved: Bash : fail the build after 5 minutes

0
By Isaac Tonny on 16/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Idea is to get the status of the deployment after the deployment command is run, If the status says Pending, sleep for 30 seconds and check again untill the status is Completed, catch here being, timeout is 300 seconds. (if the deployment is not Completed within 300 seconds, exit with return code 1.)
Above logic is not elegant and I’ve to add few more validations in the else part to fail the build, if the deployment is not completed within 300 seconds.
Any help in handling this scenario in more generic and elegantly, thanks.

Answer:

I don’t think that you can do it “generically” in a different manner.

If you have better answer, please add a comment about this, thank you!

bash
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Kivy widget hierarchy not behaving as expected

24/03/2023

Resolved: Pandas Groupby Get Values from Previous Group

24/03/2023

Resolved: Can’t access static methods from outside until JavaScript’s static block is over?

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.