Project

General

Profile

Actions

Bug #30145

closed

foreman-rake foreman_tasks:cleanup fails because Dynflow world is not initialized yet

Added by Adam Ruzicka almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman plugin
Target version:
-

Description

rake aborted!
The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.2/lib/dynflow/rails.rb:75:in `world'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5/lib/foreman_tasks/cleaner.rb:80:in `initialize'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5/lib/foreman_tasks/cleaner.rb:8:in `new'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5/lib/foreman_tasks/cleaner.rb:8:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.17.5/lib/foreman_tasks/tasks/cleanup.rake:37:in `block (3 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => foreman_tasks:cleanup => foreman_tasks:cleanup:run
(See full trace by running task with --trace)

Related issues 2 (0 open2 closed)

Related to Foreman - Bug #30146: Provide a way for giving rake tasks the ability to act as Dynflow clientsClosedAdam RuzickaActions
Has duplicate foreman-tasks - Bug #25935: Tasks cleanup rake tasks acts as an executorDuplicateActions
Actions #1

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/559 added
Actions #2

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman-tasks/pull/561 added
Actions #3

Updated by Adam Ruzicka almost 4 years ago

  • Related to Bug #30146: Provide a way for giving rake tasks the ability to act as Dynflow clients added
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Fixed in Releases foreman-tasks-2.0.2 added
Actions #5

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman-tasks/pull/560 added
Actions #6

Updated by Adam Ruzicka almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Adam Ruzicka almost 4 years ago

  • Fixed in Releases foreman-tasks-1.1.2 added
Actions #8

Updated by Adam Ruzicka about 3 years ago

  • Has duplicate Bug #25935: Tasks cleanup rake tasks acts as an executor added
Actions

Also available in: Atom PDF