Method: FireAndForget::Launcher#set_status

Defined in:
lib/fire_and_forget/launcher.rb

#set_status(task_name, status) ⇒ Object

Sets the status of the given task enabling simple interprocess communication through string messages

Parameters:

  • task_name (String)

    the name of the task to set the status for

  • status (#to_s)

    the setting for the given task’s status



64
65
66
67
# File 'lib/fire_and_forget/launcher.rb', line 64

def set_status(task_name, status)
  command = Command::SetStatus.new(task_name, status)
  Client.run(command)
end