       $tasks: $set {
         rule: 'task'
         bind: -> @val.$container
-        if: -> @val.status is 'pending' or @val.status is 'cancelling'
+        if: isTaskLive
       }
 
       $running_VMs: $set {

isHostRunning = ->
  @power_state is 'Running'

module.export = ->

  {

      $memory: $sum {
        rule: 'host'
        val: -> @val.memory
        init: { # TODO: Does not currently handle objects.
          usage: 0
          size: 0
        }
