Feature #23017

Add features needed for resilience of tasks delegated to the proxy

Added by Adam Ruzicka 3 months ago. Updated about 1 month ago.

Status:Closed
Priority:Normal
Assigned To:Adam Ruzicka
Category:Foreman plugin
Target version:Foreman - Team Ivan Iteration 29
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman-tasks/pull/298
Story points-
Velocity based estimate-

Associated revisions

Revision f8f27c1b
Added by Adam Růžička about 1 month ago

Fixes #23017 - Rex resilience (#298)

The middleware piggybacks on the action it is attached to. On first
run it sets up the clock for the action to receive a special event and
passes the execution to the action. On subsequent runs the middleware
checks if the received event is the one set earlier in which case it
does the polling, sets the clock again and suspends the
action. Otherwise it just passes the event to the action.

High level overview of polling could be summarized as follows. The
middleware retrieves a list of attached action's sub-plans and selects
actions which were delegated to smart proxies. The delegated actions
are grouped by a smart proxy and the smart proxies are queried about
the tasks' states. The actions are notified if either their proxy
tasks went missing or are stopped.

History

#1 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman-tasks/pull/298 added

#2 Updated by The Foreman Bot 2 months ago

  • Status changed from New to Ready For Testing

#3 Updated by Anonymous about 1 month ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF