-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1007 from TIP-Global-Health/develop
WIP: Developments starting December 20, 2023
- Loading branch information
Showing
113 changed files
with
11,073 additions
and
3,000 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# circleci_wait.sh | ||
|
||
CMD="$*" | ||
|
||
TIMEOUT=2700 | ||
INTERVAL=240 | ||
$CMD & | ||
CMD_PID=$! | ||
|
||
TIME_PASSED=0 | ||
while [ $TIME_PASSED -lt $TIMEOUT ]; do | ||
sleep $INTERVAL | ||
TIME_PASSED=$((TIME_PASSED + INTERVAL)) | ||
echo "Still running... (elapsed time: ${TIME_PASSED}s)" | ||
|
||
# Check if the command is still active | ||
if ! kill -0 $CMD_PID 2> /dev/null; then | ||
echo "Command completed" | ||
wait $CMD_PID | ||
EXIT_STATUS=$? | ||
exit $EXIT_STATUS | ||
fi | ||
done | ||
|
||
echo "Timeout reached, terminating process" | ||
kill $CMD_PID | ||
exit 1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.