Skip to content

Commit

Permalink
fix(actions/control-instance): Attempt to fix timeout bumping shelve …
Browse files Browse the repository at this point in the history
…max wait

Since shelving may take more than 5 minutes, conditionally bump the corresponding
max wait time.
  • Loading branch information
jcfr committed Aug 27, 2024
1 parent e29a49f commit 0c613d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/control-instance/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,13 @@ runs:
source ~/venv/bin/activate
echo Polling "$INSTANCE_NAME" status
max_wait_time=300 # Maximum wait time in seconds (300s -> 5mins)
if [[ "$EXPECTED_STATUS" == "SHELVED_OFFLOADED" ]]; then
max_wait_time=600 # Maximum wait time in seconds (600s -> 10mins)
fi
echo "Polling '$INSTANCE_NAME' status [max_wait_time=${max_wait_time}s]"
wait_interval=5 # Interval between status checks in seconds
total_wait_time=0
Expand Down

0 comments on commit 0c613d7

Please sign in to comment.