Skip to content

Commit 2eea1c6

Browse files
committed
Longer wait times to prevent secondary ratelimiting (still occurring frequently)
1 parent 4041869 commit 2eea1c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/shared_functions

+4-4
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ create_issue() {
269269

270270
echo -n "Creating issue: $title... "
271271

272-
# Wait for 1 second to avoid secondary rate limiting
273-
sleep 1
272+
# Wait for 2 second to avoid secondary rate limiting, 1 second was nog enough
273+
sleep 2
274274

275275
if http --check-status --ignore-stdin --quiet --auth \
276276
"$TOKEN_OWNER:$TEACHER_PAT" "$org_repos_endpoint/$repo/issues" \
@@ -294,8 +294,8 @@ create_pull_request() {
294294

295295
echo -n "Creating pull request: $title... "
296296

297-
# Wait for 1 second to avoid secondary rate limiting
298-
sleep 1
297+
# Wait for 2 seconds to avoid secondary rate limiting, 1 second was nog enough
298+
sleep 2
299299

300300
if http --check-status --ignore-stdin --quiet --auth \
301301
"$TOKEN_OWNER:$TEACHER_PAT" "$org_repos_endpoint/$repo/pulls" \

0 commit comments

Comments
 (0)