Skip to content

Commit 375d8d1

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backport/tasks.py

Lines 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')}:[email protected]/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)