You are here

function hosting_task_retry in Hosting 6.2

Same name and namespace in other branches
  1. 5 task/hosting_task.module \hosting_task_retry()
  2. 7.4 task/hosting_task.module \hosting_task_retry()
  3. 7.3 task/hosting_task.module \hosting_task_retry()

Retry the given task

2 calls to hosting_task_retry()
hosting_site_update_2 in site/hosting_site.install
Retry all failed site installs, to evaluate where they might be successfully imported instead
hosting_task_retry_form_submit in task/hosting_task.module

File

task/hosting_task.module, line 349
Web server node type is defined here.

Code

function hosting_task_retry($task_id) {
  $node = node_load($task_id);
  if ($node->task_status != HOSTING_TASK_QUEUED) {
    drupal_set_message(t("The task is being retried and has been added to the hosting queue again"));
    hosting_task_log($node->vid, 'queue', t("The task is being retried and has been added to the hosting queue again"));
    $node->revision = TRUE;
    $node->changed = time();
    $node->task_status = HOSTING_TASK_QUEUED;
    node_save($node);
  }
}