Skip to content

Commit

Permalink
[api] call the event jobs delayed
Browse files Browse the repository at this point in the history
As we keep a transaction open for 1000 events, we lock quite some tables
to parse issues, clear cache lines, ...
  • Loading branch information
coolo committed Nov 26, 2013
1 parent 1c70015 commit b0f2df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/event/base.rb
Expand Up @@ -126,7 +126,7 @@ def notify_backend
def perform_create_jobs
self.create_jobs.each do |job|
obj = job.to_s.camelize.safe_constantize.new(self)
obj.perform
obj.delay.perform
end
end

Expand Down

0 comments on commit b0f2df4

Please sign in to comment.