Project

General

Profile

Actions

Bug #35774

closed

Don't initialize EventDaemon in rake tasks

Added by Evgeni Golov about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tooling
Target version:
Fixed in Releases:
Found in Releases:

Description

Ohai,

when one currently runs a rake task, like bundle exec rake 'plugin:assets:precompile[katello]', Katello will place a katello_event_daemon.lock file in #{Rails.root}/tmp.

The actual EventDaemon is never started, as it checks for "in_rake", but the initialization does still happen.

In some rare cases, this can fail because the "tmp" directory has not been yet created.

We should ensure the directory is present, but also we should just not try to write there in rake tasks

Actions #1

Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10362 added
Actions #2

Updated by Chris Roberts about 2 years ago

  • Category set to Tooling
  • Target version set to Katello 4.8.0
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases Katello 4.8.0 added
Actions #4

Updated by Evgeni Golov about 2 years ago

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

Updated by The Foreman Bot about 2 years ago

  • Pull request https://github.com/Katello/katello/pull/10384 added
Actions

Also available in: Atom PDF