lib/abid/engine/executor.rb
# Cancel the job if it should be.
# @return [Boolean] true if cancelled
Cancel the job if it should be.
Cancel the job if it should be .
def precheck_to_cancel
        return false if @job.repair?
        return false unless @state.failed?
        return false if @process.root?
        @process.cancel(Error.new('task has been failed'))
      end
def precheck_to_cancel return false if @job . repair? return false unless @state . failed? return false if @process . root? @process . cancel ( Error . new ( 'task has been failed' ) ) end
Cancel the job if it should be.
Cancel the job if it should be .
true if cancelled
true if cancelled
Boolean