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
7 changes: 6 additions & 1 deletion readthedocs/oauth/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ def sync_remote_repositories(user_id, skip_githubapp=False):
)


@app.task(queue="web")
@app.task(
queue="web",
# This is a long running task, since it syncs all repositories one by one.
time_limit=60 * 60 * 3, # 3h
soft_time_limit=(60 * 60 * 3) - 5 * 60, # 2h 55m
)
def sync_remote_repositories_from_sso_organizations():
"""
Re-sync all remote repositories from organizations with SSO enabled.
Expand Down