diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-16 09:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-16 09:08:27 +0300 |
commit | 36c3f8296f0309642d3b41b7d0e0333e50ac75a6 (patch) | |
tree | 86fc05e07f33599ae15319251d17b5060c6c52af /app/workers | |
parent | e8d7ac4f14bcc70921ea9d63c75cd2e7f2cd5c31 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/container_expiration_policy_worker.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/container_expiration_policy_worker.rb b/app/workers/container_expiration_policy_worker.rb index e1544be5aed..96590e165ae 100644 --- a/app/workers/container_expiration_policy_worker.rb +++ b/app/workers/container_expiration_policy_worker.rb @@ -12,6 +12,8 @@ class ContainerExpirationPolicyWorker # rubocop:disable Scalability/IdempotentWo user: container_expiration_policy.project.owner) do |project:, user:| ContainerExpirationPolicyService.new(project, user) .execute(container_expiration_policy) + rescue ContainerExpirationPolicyService::InvalidPolicyError => e + Gitlab::ErrorTracking.log_exception(e, container_expiration_policy_id: container_expiration_policy.id) end end end |