Вы здесь

Job queue

Составление списка заданий для выполнения при запуске cron.

Модуль Job queue реализует API, который позволяет создавать списки заданий, которые будут выполняться при запуске cron. Для добавления задания, модули могут использовать функцию job_queue_add():

<?php
/**
* Add a job to the queue. The function added will be called in the order it
* was added during cron.
*
* @param $function
*   The function name to call.
* @param $description
*   A human-readable description of the queued job.
* @param $arguments
*   Optional array of arguments to pass to the function.
* @param $file
*   Optional file path which needs to be included for $fucntion.
* @param $no_duplicate
*   If TRUE, do not add the job to the queue if one with the same function and
*   arguments already exists.
*/
function job_queue_add($function, $description, $arguments = array(), $file = '', $no_duplicate = FALSE) {
?>

Группа проекта: