Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 375d8d1

Browse filesBrowse files
authored
Set the task rate limit to 1 task per minute (GH-32)
1 parent 70317f4 commit 375d8d1
Copy full SHA for 375d8d1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎backport/tasks.py

Copy file name to clipboardExpand all lines: backport/tasks.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515

16-
@app.task
16+
@app.task(rate_limit="1/m")
1717
def setup_cpython_repo():
1818
subprocess.check_output(
1919
f"git clone https://{os.environ.get('GH_AUTH')}:x-oauth-basic@github.com/miss-islington/cpython.git".split())
@@ -25,7 +25,7 @@ def setup_cpython_repo():
2525
print("Finished setting up CPython Repo")
2626

2727

28-
@app.task
28+
@app.task(rate_limit="1/m")
2929
def backport_task(commit_hash, branch, *, issue_number, created_by, merged_by):
3030
"""Backport a commit into a branch."""
3131
if not util.is_cpython_repo():

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.