Magento reindex not crash resilient

Hi,

not 100% sure, but do I see right that there is a bug in the queue handler:
When a reindex fails, e.g. code bug or crash, the pid value in the database table algoliasearch_queue is never emptied? I see there should be a rollback, but at least here this didn’t work, and I had 30 unprocessing jobs in the queue.

regards
Alex

Hello Alex,

what version do you use? It’s been fixed recently and pid is emptied on fail.

1.11. I can reproduce that, when I get for example a php compile error in a custom observer, pid is not emptied.