Class: Actions::Middleware::WatchDelegatedProxySubTasks

Inherits:
Dynflow::Middleware
  • Object
show all
Defined in:
app/lib/actions/middleware/watch_delegated_proxy_sub_tasks.rb

Defined Under Namespace

Classes: CheckOnProxyActions

Constant Summary collapse

POLL_INTERVAL =

Poll the proxy every 10 minutes

600
BATCH_SIZE =
1000

Instance Method Summary collapse

Instance Method Details

#run(event = nil) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'app/lib/actions/middleware/watch_delegated_proxy_sub_tasks.rb', line 9

def run(event = nil)
  if event.nil?
    set_clock
  elsif event == CheckOnProxyActions
    check_triggered
    set_clock
    action.send(:suspend)
  end
  pass event
end