I'm trying to set up a cron queue, but for some reason, I don't manage to get this done.
Here is what I have so far:
function mymodule_cron() {
// Setup the queue
$queue = DrupalQueue::get('import_jobs');
// Create cache
drupal_flush_all_caches();
}
function mymodule_cron_queue_info() {
$queues['import_jobs'] = array(
'worker callback' => '_import_all_jobs',
'time' => 15,
);
return $queues;
}
The _import_all_jobs
function does it's work excellent, so nothing wrong with that. I use the Ultimate Cron module and my cron job is listed over there:
But for some reason, nothing happens... So I'm wondering what I do wrong...