def set_waiting(should_wait)
      workitem[WAITING_META] = should_wait
      send_workitem_message
    rescue Exception => e
      Maestro.log.warn "Failed To Send Waiting Message To Server #{e.class} #{e}: #{e.backtrace.join("\n")}"
    ensure
      workitem.delete(WAITING_META) unless should_wait
    end
def set_waiting(should_wait)
      workitem[WAITING_META] = should_wait
      send_workitem_message
    rescue Exception => e
      Maestro.log.warn "Failed To Send Waiting Message To Server #{e.class} #{e}: #{e.backtrace.join("\n")}"
    ensure
      workitem.delete(WAITING_META) unless should_wait
    end
control
 Sets the current task as waiting