Class: Airflow::Models::Task

Inherits:
Struct
  • Object
show all
Defined in:
lib/async_flow/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



46
47
48
# File 'lib/async_flow/models.rb', line 46

def created_at
  @created_at
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



46
47
48
# File 'lib/async_flow/models.rb', line 46

def id
  @id
end

#is_workflow_taskObject

Returns the value of attribute is_workflow_task

Returns:

  • (Object)

    the current value of is_workflow_task



46
47
48
# File 'lib/async_flow/models.rb', line 46

def is_workflow_task
  @is_workflow_task
end

#queueObject

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of queue



46
47
48
# File 'lib/async_flow/models.rb', line 46

def queue
  @queue
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



46
47
48
# File 'lib/async_flow/models.rb', line 46

def result
  @result
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



46
47
48
# File 'lib/async_flow/models.rb', line 46

def status
  @status
end

#task_nameObject

Returns the value of attribute task_name

Returns:

  • (Object)

    the current value of task_name



46
47
48
# File 'lib/async_flow/models.rb', line 46

def task_name
  @task_name
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



46
47
48
# File 'lib/async_flow/models.rb', line 46

def updated_at
  @updated_at
end

#workflow_idObject

Returns the value of attribute workflow_id

Returns:

  • (Object)

    the current value of workflow_id



46
47
48
# File 'lib/async_flow/models.rb', line 46

def workflow_id
  @workflow_id
end

#workflow_nameObject

Returns the value of attribute workflow_name

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


52
53
54
# File 'lib/async_flow/models.rb', line 52

def completed?
  status == "completed"
end