Add sleep before each REST call to Constellix to prevent rate limit

This commit is contained in:
wout committed 2025-08-12 11:30:16 +02:00
1 parent 74fdf649d3
commit 1b5e66f9c2
1 file changed
+3
+3
View File
@@ -156,6 +156,9 @@ _constellix_rest() {
data="$3"
_debug "$ep"
# Prevent rate limit
_sleep 2
rdate=$(date +"%s")"000"
hmac=$(printf "%s" "$rdate" | _hmac sha1 "$(printf "%s" "$CONSTELLIX_Secret" | _hex_dump | tr -d ' ')" | _base64)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.