phpmagentomagento2magento-2.3

Magento 2: Bulk Actions Not Starting?


I've spent a few hours trying to figure this out however I haven't progressed much so I thought I'd post here. I'm having issues with the Bulk Actions not starting, the task gets queued however that's all it does, it doesn't start. I get a Task "Update attributes for 20 selected products": 0 item(s) are currently being updated.0 item(s) have been scheduled for update. and when I check the log, it says it's 'In Progress' however nothing starts.

Troubleshooting

1.) I've checked the magento_bulk and deleted the rows, hoping there was something stuck however when I queued another task, it gets added to the table and doesn't get pushed into magento_acknowledged_bulk. Is the job supposed to be pushed into this to actually run?

2.) I've checked the Nginx logs and can't see anything which would point to an issue, there was an issue with post_max_size where the limit was being exceeded however I fixed this and restarted PHP, this didn't have any effect on the bulk actions.

3.) I double-checked the permissions and can confirm they're as Magento recommends, there's nothing incorrect with the permissions.


Has anyone encountered this issue before? I looked through some forums however it doesn't look like anyone had a fix for this?

Any help is greatly appreciated!


Solution

  • After some further investigation and looking around, this change in the env.php file seems to have fixed my issue. Before making the change, I cleared the magento_bulk table and ensured nothing was queued.

    I replaced the default cron_consumers_runner with the following:

    'cron_consumers_runner' => [
    'cron_run' => true,
    'max_messages' => 2000,
    'consumers' => [
        'product_action_attribute.update',
        'product_action_attribute.website.update',
        'exportProcessor',
        'codegeneratorProcessor'
    ]]
    

    After changing this, I recompiled and cleared the caches before queuing up a bulk change (I changed the pricing of 20 products) and this job ran instantly.

    I hope this helps others!