Skip to content
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: 4 additions & 0 deletions packit_service/worker/handlers/bodhi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from packit.config import Deployment, JobConfig, JobType, PackageConfig
from packit.exceptions import PackitException

from packit_service import sentry_integration
from packit_service.config import ServiceConfig
from packit_service.constants import (
DEFAULT_RETRY_BACKOFF,
Expand Down Expand Up @@ -196,6 +197,9 @@ def _run(self) -> TaskResults:
},
)

# Send to Sentry after all retries are exhausted
sentry_integration.send_to_sentry(ex)

error = str(ex)
errors[target_model.target] = get_bodhi_update_info_url(target_model.id)

Expand Down
2 changes: 1 addition & 1 deletion packit_service/worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class TaskWithRetry(Task):

class BodhiTaskWithRetry(TaskWithRetry):
# hardcode for creating bodhi updates to account for the tagging race condition
max_retries = 5
max_retries = 8
# also disable jitter for the same reason
retry_jitter = False
retry_kwargs: ClassVar[dict] = {
Expand Down
Loading