Magento 2 Bulk Actions not Starting
Seems like a bug to me.
I fixed it by modifying this function in vendor/magento/module-asynchronous-operations/Model/BulkManagement.php
Bad of me but hey, maybe it's a PR :)
private function publishOperations(array $operations)
{
$operationsByTopics = [];
foreach ($operations as $operation) {
+ $this->entityManager->save($operation);
$operationsByTopics[$operation->getTopicName()][] = $operation;
}
foreach ($operationsByTopics as $topicName => $operations) {
$this->publisher->publish($topicName, $operations);
}
}
Magento 2.4
This issue is solved here: https://github.com/magento/magento2/pull/29814/files
https://github.com/magento/magento2/issues/29797#issuecomment-698561956
If the old message is still shown then you can delete it from the magento_bulk
and magento_bulk_acknowledged
tables.
https://github.com/magento/magento2/issues/29797#issuecomment-700537460
Thank you.