app/services/change_manager/manager.rb in change_manager-0.3.1 vs app/services/change_manager/manager.rb in change_manager-0.3.2
- old
+ new
@@ -1,10 +1,9 @@
module ChangeManager
module Manager
def queue_change(owner, change_type, context, target)
change_id = Change.new_change(owner, change_type, context, target)
- Resque.enqueue(ChangeManager::BeginChange, change_id)
- # Resque.enqueue_in(5.minutes, ChangeManager::BeginChange, change_id)
+ Resque.enqueue_in(7.minutes, ChangeManager::BeginChange, change_id)
end
def process_change(change_id)
unless Change.find(change_id).cancelled?
change = Change.find change_id