From 375d8d1b204a1cb795cb5fa0c7bd39461750b13d Mon Sep 17 00:00:00 2001 From: Mariatta Date: Tue, 3 Oct 2017 11:34:41 -0700 Subject: [PATCH] Set the task rate limit to 1 task per minute (GH-32) --- backport/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backport/tasks.py b/backport/tasks.py index 01634574619b160..81e5aaca0e43510 100644 --- a/backport/tasks.py +++ b/backport/tasks.py @@ -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')}:x-oauth-basic@github.com/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():