Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(issue-states): increase time limits for auto transitioning to ongoing issues #49033

Merged
merged 1 commit into from
May 12, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/sentry/conf/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,13 +1013,13 @@ def SOCIAL_AUTH_DEFAULT_USERNAME():
"task": "sentry.tasks.schedule_auto_transition_new",
# Run job once a day at 00:30
"schedule": crontab(minute=30, hour="0"),
"options": {"expires": 3600},
"options": {"expires": 10 * 60},
},
"schedule_auto_transition_regressed": {
"task": "sentry.tasks.schedule_auto_transition_regressed",
# Run job once a day at 02:30
"schedule": crontab(minute=30, hour="2"),
"options": {"expires": 3600},
"options": {"expires": 10 * 60},
},
}

Expand Down
12 changes: 4 additions & 8 deletions src/sentry/tasks/auto_ongoing_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
@instrumented_task(
name="sentry.tasks.schedule_auto_transition_new",
queue="auto_transition_issue_states",
time_limit=75,
soft_time_limit=60,
) # type: ignore
@monitor(monitor_slug="schedule_auto_transition_new")
def schedule_auto_transition_new() -> None:
Expand Down Expand Up @@ -44,8 +42,8 @@ def schedule_auto_transition_new() -> None:
@instrumented_task(
name="sentry.tasks.auto_transition_issues_new_to_ongoing",
queue="auto_transition_issue_states",
time_limit=75,
soft_time_limit=60,
time_limit=1.25 * 5 * 60,
soft_time_limit=5 * 60,
) # type: ignore
def auto_transition_issues_new_to_ongoing(
project_id: int,
Expand Down Expand Up @@ -82,8 +80,6 @@ def auto_transition_issues_new_to_ongoing(
@instrumented_task(
name="sentry.tasks.schedule_auto_transition_regressed",
queue="auto_transition_issue_states",
time_limit=75,
soft_time_limit=60,
) # type: ignore
@monitor(monitor_slug="schedule_auto_transition_regressed")
def schedule_auto_transition_regressed() -> None:
Expand Down Expand Up @@ -113,8 +109,8 @@ def schedule_auto_transition_regressed() -> None:
@instrumented_task(
name="sentry.tasks.auto_transition_issues_regressed_to_ongoing",
queue="auto_transition_issue_states",
time_limit=75,
soft_time_limit=60,
time_limit=1.25 * 5 * 60,
soft_time_limit=5 * 60,
) # type: ignore
def auto_transition_issues_regressed_to_ongoing(
project_id: int,
Expand Down