 isHostRunning = ->
   @power_state is 'Running'
 
+isTaskLive = ->
+  @val.status is 'pending' or @val.status is 'cancelling'
+
 module.export = ->
 
   {

      iSCSI_name: -> @genval.other_config?.iscsi_iqn ? null

      memory: $sum {
        key: -> @genval.metrics
      }

      # TODO

      $tasks: $set {
        rule: 'task'
        bind: -> @val.$container
        if: isTaskLive
      }

      $running_VMs: $set {
