Project

General

Profile

Feature #23017

Add features needed for resilience of tasks delegated to the proxy

Added by Adam Ruzicka 8 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman plugin
Target version:
-
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Associated revisions

Revision f8f27c1b (diff)
Added by Adam Růžička 7 months 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 8 months ago

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

#2 Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing

#3 Updated by Anonymous 7 months ago

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

Also available in: Atom PDF