Class: Jongleur::Task
- Inherits:
-
Struct
- Object
- Struct
- Jongleur::Task
- Defined in:
- lib/jongleur.rb
Overview
a Task is a representation of the status of an executable Jongleur class, i.e. a class derived from WorkerTask and the process that’s executing that class
Instance Attribute Summary collapse
-
#exit_status ⇒ Integer, Nil
Usually 0 for success, 1 for error or Nil otherwise.
-
#name ⇒ String
The class (WorkerTask) name that’s executing this process.
-
#pid ⇒ Integer
The process id accoding to the OS.
-
#running ⇒ Boolean
True if the process is running.
-
#success_status ⇒ Boolean, Nil
True if process finished successfully, false if it didn’t or nil if process didn’t exit properly.
Instance Attribute Details
#exit_status ⇒ Integer, Nil
Usually 0 for success, 1 for error or Nil otherwise
29 |
# File 'lib/jongleur.rb', line 29 Task = Struct.new(:name, :pid, :running, :exit_status, :success_status) |
#name ⇒ String
Returns the class (WorkerTask) name that’s executing this process.
29 |
# File 'lib/jongleur.rb', line 29 Task = Struct.new(:name, :pid, :running, :exit_status, :success_status) |
#pid ⇒ Integer
Returns the process id accoding to the OS.
29 |
# File 'lib/jongleur.rb', line 29 Task = Struct.new(:name, :pid, :running, :exit_status, :success_status) |
#running ⇒ Boolean
Returns true if the process is running.
29 |
# File 'lib/jongleur.rb', line 29 Task = Struct.new(:name, :pid, :running, :exit_status, :success_status) |
#success_status ⇒ Boolean, Nil
Returns true if process finished successfully, false if it didn’t or nil if process didn’t exit properly.
29 |
# File 'lib/jongleur.rb', line 29 Task = Struct.new(:name, :pid, :running, :exit_status, :success_status) |