ElasticCommitIndexerWorker fails with ActiveRecord::RecordNotFound but should just skip job
When a project is deleted before the ElasticCommitIndexerWorker
is run then the worker fails with ActiveRecord::RecordNotFound: Couldn't find Project with 'id'=XX` but really it should just succeed as this is a no-op if there is nothing to be done. The errors cause noise in our logging as you can see in https://log.gprd.gitlab.net/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-3h,to:now))&_a=(columns:!(_source),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:AWNABDRwNDuQHTm2tH6l,key:json.class.keyword,negate:!f,params:(query:ElasticCommitIndexerWorker),type:phrase),query:(match:(json.class.keyword:(query:ElasticCommitIndexerWorker,type:phrase))))),index:AWNABDRwNDuQHTm2tH6l,interval:auto,query:(language:kuery,query:'%22ActiveRecord::RecordNotFound%22'),sort:!(!(json.time,desc)))