1. 09 Jun, 2010 7 commits
  2. 08 Jun, 2010 4 commits
  3. 07 Jun, 2010 7 commits
  4. 04 Jun, 2010 2 commits
  5. 03 Jun, 2010 6 commits
  6. 02 Jun, 2010 10 commits
  7. 31 May, 2010 4 commits
    • anarcat's avatar
    • anarcat's avatar
      do not save the task in hosting-tasks, only in hosting-task · 1d56fc98
      anarcat authored
      we are already saving the task in hosting-task. the reason why we were
      saving in both places was to avoid a race condition where a task would
      be started *while* the dispatcher would restart, which is very unlikely,
      and was still possible with the existing code anyways.
      
      now the checks are done only in hosting-task. it's more possible to have
      a conflicting concurrent run of a task, but both runs would need to
      start at about the same time so that the _validate() drush hooks would
      run in parallel and both would check and save the task status at once.
      
      i consider this too unlikely to desserve the current hack.
      
      furthermore, the problem with the current code was that if the
      hosting-task command was interrupted (for example through
      provision_init() load checks) before it was able to save the status, we
      end up with zombie tasks that are marked as running but that are gone
      from the process table (because they never started properly).
      1d56fc98
    • anarcat's avatar
      display a link to the parent node in _hosting_task_list() · e7c803b8
      anarcat authored
      this way the display is similar in the queue block and the general
      task list
      e7c803b8
    • anarcat's avatar
      don't start more than N tasks in parallel · caf5550c
      anarcat authored
      this should help with #559006 and other critical situations where we
      would get a server meltdown under high load.
      
      this also features an API change: it's the queues that specify the
      number of running items, not the dispatcher, so we now have a
      running_items parameter to the queue (just like we have a total_items)
      caf5550c