Project

General

Profile

Actions

Bug #35774

closed

Don't initialize EventDaemon in rake tasks

Added by Evgeni Golov about 2 years ago. Updated almost 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

Also available in: Atom PDF