I am creating queue items from a cronjob. But it seems they are not getting processed. Any ideas why?
Do we need to process the items separately? I mean i have created the worker class and everything.
Thanks BR/Pratip
I am creating queue items from a cronjob. But it seems they are not getting processed. Any ideas why?
Do we need to process the items separately? I mean i have created the worker class and everything.
Thanks BR/Pratip
/**
* Create node object from the imported XML content
* * @QueueWorker(
* id = "import_content_from_xml",
* title = @Translation("Import Content From XML"),
* cron = {"time" = 60}
* )
*/
Source: An example module to help understanding the Queue API and the Batch API in Drupal 8.
I highly recommend using Queue UI to monitor the queue from there. If it is not running, check your database log and try running the process as a batch (sometimes that is easier to troubleshoot).