-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the task rate limit to 1 task per minute (GH-32)
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
|
||
|
||
@app.task | ||
@app.task(rate_limit="1/m") | ||
def setup_cpython_repo(): | ||
subprocess.check_output( | ||
f"git clone https://{os.environ.get('GH_AUTH')}:[email protected]/miss-islington/cpython.git".split()) | ||
|
@@ -25,7 +25,7 @@ def setup_cpython_repo(): | |
print("Finished setting up CPython Repo") | ||
|
||
|
||
@app.task | ||
@app.task(rate_limit="1/m") | ||
def backport_task(commit_hash, branch, *, issue_number, created_by, merged_by): | ||
"""Backport a commit into a branch.""" | ||
if not util.is_cpython_repo(): | ||
|