lib/abid/state_manager/state.rb
# Assume the job to be successed
#
# If the `force` option is true, update the state to SUCCESSED even if the
# task is running.
Assume the job to be successed
If the `force` option is true, update the state to SUCCESSED even if the
task is running.
Assume the job to be successed If the ` force ` option is true update the state to SUCCESSED even if the task is running .
def assume(force: false)
        return if successed?
        check_running! unless force
        time = Time.now
        update(state: SUCCESSED, start_time: time, end_time: time)
      end
def assume ( force : false ) return if successed? check_running! unless force time = Time . now update ( state : SUCCESSED , start_time : time , end_time : time ) end
Assume the job to be successed
If the `force` option is true, update the state to SUCCESSED even if the
task is running.
Assume the job to be successed If the ` force ` option is true update the state to SUCCESSED even if the task is running .
force