Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions miss_islington/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ def setup_cpython_repo():

@app.task()
def backport_task(commit_hash, branch, *, issue_number, created_by, merged_by, installation_id):
loop = asyncio.get_event_loop()
loop.run_until_complete(
asyncio.run(
backport_task_asyncio(
commit_hash,
branch,
Expand Down Expand Up @@ -262,8 +261,7 @@ async def backport_task_asyncio(
@app.task()
def delete_branch_task(branch_name, pr_url, merged, *, installation_id):
"""Delete a branch from the miss-islington/cpython fork."""
loop = asyncio.get_event_loop()
loop.run_until_complete(
asyncio.run(
_delete_branch_task_asyncio(
branch_name, pr_url, merged, installation_id=installation_id
)
Expand Down
Loading