Skip to content

Commit

Permalink
add random sleep at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincoln Bryant committed May 20, 2024
1 parent bac83b1 commit 2ffba84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions image-config/60-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ chmod +x $CONNECT_DIR/sync_users.sh
pushd $CONNECT_DIR
echo "token=$API_TOKEN" > $CONNECT_DIR/token
export API_TOKEN_FILE=$CONNECT_DIR/token
# Random sleep to prevent thundering herd.
sleep $((RANDOM%120))
$CONNECT_DIR/sync_users.sh -u root.atlas-af -g root.atlas-af -e https://api.ci-connect.net:18080
popd

Expand Down

0 comments on commit 2ffba84

Please sign in to comment.