[contributions:anarcat] /modules/hosting hosting.queues.inc task.hosting.inc /modules/hosting/task hosting_task.install hosting_task.module
User: anarcat Branch: HEAD Date: Fri, 09 Oct 2009 15:53:07 +0000 Modified files: /modules/hosting hosting.queues.inc task.hosting.inc /modules/hosting/task hosting_task.install hosting_task.module Log message: API: drop the redundant hosting_task_queue table the table was reproducing the status field from hosting_task and was making it difficult to reliably manipulate the status of a task. all instances of $node->queued should now be replaced by $node->task_status == HOSTING_TASK_QUEUED all uses of the timestamp in the hosting_task_queue table should instead use the task node changed field queries that used the hosting_task_queue table for listing pending queue should instead look directly in the hosting_task table and look for HOSTING_TASK_QUEUED status, be sure to join with the node table to avoid duplicate entries due to revisions we also introduce a HOSTING_TASK_PROCESSING status for tasks since the queue "locking" (ie. not starting two tasks at a time) was relying on the duplicate information Links: http://cvs.drupal.org/diff.php?path=contributions/modules/hosting/hosting.qu... http://cvs.drupal.org/diff.php?path=contributions/modules/hosting/task.hosti... http://cvs.drupal.org/diff.php?path=contributions/modules/hosting/task/hosti... http://cvs.drupal.org/diff.php?path=contributions/modules/hosting/task/hosti...
participants (1)
-
drupal-cvs@drupal.org