Skip to content

Commit

Permalink
[api] write configuration not via delayed job when using "rake writec…
Browse files Browse the repository at this point in the history
…onfig"

it messes up the initial bootup otherwise
  • Loading branch information
adrianschroeter committed Mar 21, 2014
1 parent a8c1d7a commit 01fa375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/Rakefile
Expand Up @@ -13,8 +13,8 @@ task(:updateissues => :environment) { Delayed::Job.enqueue UpdateIssuesJob.new }

task(:updatepackagemeta => :environment) { UpdatePackageMetaJob.new.perform }

require 'workers/write_configuration.rb'
task(:writeconfiguration => :environment) { WriteConfigurationJob.new.perform }
# write directly to backend, for initial bootup in obsapisetup
task(:writeconfiguration => :environment) { ::Configuration.first.write_to_backend }

require 'workers/import_requests.rb'
task(:importrequests => :environment) { ImportRequestsDelayedJob.new.perform }
Expand Down

0 comments on commit 01fa375

Please sign in to comment.