Class: Airflow::Models::Task
- Inherits:
-
Struct
- Object
- Struct
- Airflow::Models::Task
- Defined in:
- lib/async_flow/models.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_workflow_task ⇒ Object
Returns the value of attribute is_workflow_task.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#result ⇒ Object
Returns the value of attribute result.
-
#status ⇒ Object
Returns the value of attribute status.
-
#task_name ⇒ Object
Returns the value of attribute task_name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#workflow_id ⇒ Object
Returns the value of attribute workflow_id.
-
#workflow_name ⇒ Object
Returns the value of attribute workflow_name.
Instance Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def id @id end |
#is_workflow_task ⇒ Object
Returns the value of attribute is_workflow_task
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def is_workflow_task @is_workflow_task end |
#queue ⇒ Object
Returns the value of attribute queue
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def queue @queue end |
#result ⇒ Object
Returns the value of attribute result
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def result @result end |
#status ⇒ Object
Returns the value of attribute status
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def status @status end |
#task_name ⇒ Object
Returns the value of attribute task_name
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def task_name @task_name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def updated_at @updated_at end |
#workflow_id ⇒ Object
Returns the value of attribute workflow_id
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def workflow_id @workflow_id end |
#workflow_name ⇒ Object
Returns the value of attribute workflow_name
46 47 48 |
# File 'lib/async_flow/models.rb', line 46 def workflow_name @workflow_name end |
Instance Method Details
#complete! ⇒ Object
48 49 50 |
# File 'lib/async_flow/models.rb', line 48 def complete! self.status = "completed" end |
#completed? ⇒ Boolean
52 53 54 |
# File 'lib/async_flow/models.rb', line 52 def completed? status == "completed" end |