Actions
Bug #35774
closedDon't initialize EventDaemon in rake tasks
Difficulty:
Triaged:
Yes
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