diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-31 21:09:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-31 21:09:19 +0300 |
commit | 676109e1b32682bdbdd94a9ffbd8743784f35521 (patch) | |
tree | 71f0394c68455c1736a14c215992de6aa5fe358c /app/workers | |
parent | 5facc34f44ce8736078127a5df174a7b52d922b4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/expire_job_cache_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/expire_job_cache_worker.rb b/app/workers/expire_job_cache_worker.rb index 77b0edfd7de..48bb1160ae8 100644 --- a/app/workers/expire_job_cache_worker.rb +++ b/app/workers/expire_job_cache_worker.rb @@ -10,7 +10,7 @@ class ExpireJobCacheWorker # rubocop: disable CodeReuse/ActiveRecord def perform(job_id) - job = CommitStatus.joins(:pipeline, :project).find_by(id: job_id) + job = CommitStatus.eager_load_pipeline.find_by(id: job_id) return unless job pipeline = job.pipeline |