la-haute-societe / craft-elasticsearch

Bring the power of Elasticsearch to your Craft CMS projects
Other
18 stars 14 forks source link

Element delete doesn't delete entries in Queue #36

Open sfsmfc opened 1 year ago

sfsmfc commented 1 year ago

If you delete an entry faster as the queue can execute an index job, you run into an error "Element #9055834 (site #1) not found (type: craft\elements\Entry)", because the element doesn't exists anymore. The delete action should also delete index entries in the queue to prevent such an error.

Tasks to reproduce this error:

I will look, if I could make a patch for this.

sfsmfc commented 1 year ago

Pull-Request https://github.com/la-haute-societe/craft-elasticsearch/pull/37 is ready for review.