Class: Dynflow::Coordinator::AutoExecuteLock

Inherits:
LockByWorld show all
Defined in:
lib/dynflow/coordinator.rb

Constant Summary

Constants inherited from Serializable

Serializable::LEGACY_TIME_FORMAT, Serializable::TIME_FORMAT

Instance Attribute Summary

Attributes inherited from Record

#data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LockByWorld

inherited, unique_filter, valid_classes, valid_owner_ids, #validate!, #world_id

Methods inherited from Lock

constantize, #owner_id, #to_s, #unlock_on_shutdown?, #validate!

Methods inherited from Record

#==, constantize, #from_hash, #hash, #id, new_from_hash, #to_hash, #to_s, #validate!

Methods inherited from Serializable

constantize, from_hash, new_from_hash, #to_hash

Constructor Details

#initialize(*args) ⇒ AutoExecuteLock

Returns a new instance of AutoExecuteLock.



225
226
227
228
# File 'lib/dynflow/coordinator.rb', line 225

def initialize(*args)
  super
  @data[:id] = self.class.lock_id
end

Class Method Details

.lock_idObject



230
231
232
# File 'lib/dynflow/coordinator.rb', line 230

def self.lock_id
  "auto-execute"
end