Class: AzkabanScheduler::Schedule

Inherits:
Object
  • Object
show all
Defined in:
lib/azkaban_scheduler/schedule.rb

Defined Under Namespace

Classes: Stats

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_name, flow_name, options = {}) ⇒ Schedule

Returns a new instance of Schedule.



6
7
8
9
10
11
12
13
14
# File 'lib/azkaban_scheduler/schedule.rb', line 6

def initialize(project_name, flow_name, options={})
  @project_name = project_name
  @flow_name = flow_name
  @period = options[:period]
  @is_recurring = !!options[:period]
  @time = options[:time] || Time.now.to_i
  @failure_emails = options[:failure_emails]
  @success_emails = options[:success_emails]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/azkaban_scheduler/schedule.rb', line 4

def id
  @id
end

#statsObject

Returns the value of attribute stats.



4
5
6
# File 'lib/azkaban_scheduler/schedule.rb', line 4

def stats
  @stats
end