lib/serfx/utils/async_job.rb
# delete the state file of a finished task
#
# @return [String] 'success' if the task is reaped, 'failed' otherwise
delete the state file of a finished task
delete the state file of a finished task
def reap
        if stateinfo['status'] == 'finished'
          File.unlink(state_file)
          'success'
        else
          'failed'
        end
      end
def reap if stateinfo [ 'status' ] == 'finished' File . unlink ( state_file ) 'success' else 'failed' end end
delete the state file of a finished task
delete the state file of a finished task
'success' if the task is reaped, 'failed' otherwise
' success ' if the task is reaped ' failed ' otherwise
String