Skip to content

Commit 3eed153

Browse files
committed
Minor improvements to aggregate backend.
1 parent 5df737c commit 3eed153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/async/job/backend/aggregate/server.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ def run(task)
5252
# We are creating a task:
5353
@task = true
5454

55-
parent.async(transient: true) do |task|
55+
parent.async(transient: true, annotation: self.class.name) do |task|
5656
@task = task
5757

5858
run(task)
5959
ensure
6060
# Ensure that all jobs are flushed before we exit:
61-
flush(@pending) if @pending.any?
6261
flush(@processing) if @processing.any?
62+
flush(@pending) if @pending.any?
6363
@task = nil
6464
end
6565

0 commit comments

Comments
 (0)