Project

General

Profile

Bug #30528

Make rake console run as a dynflow client to allow access to features provided by dynflow

Added by Adam Ruzicka about 2 months ago. Updated 15 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rake tasks
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Associated revisions

Revision 3367d8d2 (diff)
Added by Adam Ruzicka about 2 months ago

Fixes #30528 - Run rake console as dynflow client (#7871)

  • Fixes #30528 - Run rake console as dynflow client

Dynflow identifies separate runtime units (think processes) as worlds. Dynflow
distinguishes two kinds of worlds, executors worlds which can actually perform
things and client worlds, which can only ask the executor worlds to execute
something on their behalf.

Due to the recent move to sidekiq and puma, Dynflow gets initialized slightly
differently and all rake tasks now don't register themselves as Dynflow worlds.
This is mostly fine, since the world registration isn't exactly free operation
and most of the rake tasks don't interact with Dynflow in any way. However,
tasks which need to interact with Dynflow started failing. To fix this, we
introduced the dynflow:client rake task in 4e53859, on which other tasks can
depend and which registers the current process as a Dynflow client.

This patch allows running rails console as a Dynflow client so users can
interact with Dynflow from the console.

History

#1 Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7871 added

#2 Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases 2.2.0 added

#3 Updated by Adam Ruzicka about 2 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Justin Sherrill about 1 month ago

  • Target version set to 2.1.2

#5 Updated by Tomer Brisker about 1 month ago

  • Fixed in Releases 2.1.2 added

#6 Updated by Justin Sherrill about 1 month ago

  • Bugzilla link set to 1870657

#7 Updated by The Foreman Bot 16 days ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

#8 Updated by Adam Ruzicka 15 days ago

  • Pull request deleted (https://github.com/theforeman/foreman/pull/7975)

Also available in: Atom PDF