Skip to content

Commit

Permalink
Set the task rate limit to 1 task per minute (GH-32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariatta authored Oct 3, 2017
1 parent 70317f4 commit 375d8d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backport/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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():
Expand Down

0 comments on commit 375d8d1

Please sign in to comment.