undefined method `refreshing_build_artifacts_size?' for nil:NilClass (NoMethodError) in Sidekiq/ExpireBuildArtifactsWorker
Sentry: https://new-sentry.gitlab.net/organizations/gitlab/issues/884272/
NoMethodError: undefined method `refreshing_build_artifacts_size?' for nil:NilClass (NoMethodError)
next unless artifact.project.refreshing_build_artifacts_size?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
from app/services/ci/job_artifacts/destroy_batch_service.rb:136:in `block in exclude_artifacts_undergoing_stats_refresh'
from app/services/ci/job_artifacts/destroy_batch_service.rb:135:in `reject!'
from app/services/ci/job_artifacts/destroy_batch_service.rb:135:in `exclude_artifacts_undergoing_stats_refresh'
from app/services/ci/job_artifacts/destroy_batch_service.rb:30:in `execute'
from app/services/ci/job_artifacts/destroy_all_expired_service.rb:45:in `destroy_batch'
from app/services/ci/job_artifacts/destroy_all_expired_service.rb:39:in `block in destroy_unlocked_job_artifacts'
from lib/gitlab/loop_helpers.rb:16:in `block in loop_until'
from lib/gitlab/loop_helpers.rb:15:in `times'
from lib/gitlab/loop_helpers.rb:15:in `loop_until'
from app/services/ci/job_artifacts/destroy_all_expired_service.rb:37:in `destroy_unlocked_job_artifacts'
from app/services/ci/job_artifacts/destroy_all_expired_service.rb:28:in `block in execute'
from lib/gitlab/exclusive_lease_helpers.rb:43:in `block in in_lock'
from lib/gitlab/exclusive_lease_helpers.rb:53:in `with_instrumentation'
from lib/gitlab/exclusive_lease_helpers.rb:42:in `in_lock'
from app/services/ci/job_artifacts/destroy_all_expired_service.rb:27:in `execu