How can I use Drush to pass data into a Drupal Queue?
function hook_cron_queue_info() { $queues['my_queue_name'] = array( 'worker callback' => '_my_queue_callback', // This is the callback function for each queue item. 'time' => 25, // This is the max run time per cron run in seconds. ); return $queues; } function module_name_load_queue($item) { $queue = DrupalQueue::get('my_queue_name'); $queue->createItem(json_encode($item)); }
My ultimate goal is to pre-process data using a few bash scripts and then pass the end result to module_name_load_queue($item);
using Drush.
Is this possible? If so, how do I go about this?