lib/serfx/utils/async_job.rb
# check if a task already running
#
# @return [TrueClass, FalseClass] true if the task running, else false
check if a task already running
check if a task already running
def running?
        if exists?
          File.exist?(File.join('/proc', stateinfo['pid'].to_s))
        else
          false
        end
      end
def running? if exists? File . exist? ( File . join ( '/proc' , stateinfo [ 'pid' ] . to_s ) ) else false end end
check if a task already running
check if a task already running
true if the task running, else false
true if the task running else false
TrueClass, FalseClass