Skip to content

Commit

Permalink
Poll for Status and Refresh Token if Expiring
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Dec 2, 2024
1 parent 6f8b7e8 commit 9b8fbf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test_illumina_genotyping_array.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ jobs:
RETRY_DELAY=300 # 300 seconds = 5 minutes
CURRENT_TIME=$(date +%s) # current timestamp in seconds
TIME_LEFT=$(( $EXPIRATION_TIME - $CURRENT_TIME ))
echo "Time left for token expiry: $TIME_LEFT seconds"
echo "The current time is: $CURRENT_TIME"
echo "The expiration time is: $EXPIRATION_TIME"
# If token expires in less than 5 minutes, refresh the token
if [ $TIME_LEFT -le 300 ]; then
Expand Down

0 comments on commit 9b8fbf0

Please sign in to comment.