Skip to content

Commit 58f8913

Browse files
solnicgithub-copilot
andcommitted
fix(active_job): avoid shared queue race in jruby
Co-Authored-By: github-copilot <noreply@example.com>
1 parent 3bc2cfa commit 58f8913

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry-rails/spec/active_job/shared_examples/tracing/worker_hub_isolation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def perform
2020

2121
Sentry.get_current_scope.set_tags(test_thread: true)
2222

23-
thread_a = worker_thread { job_a.perform_later; drain }
24-
thread_b = worker_thread { job_b.perform_later; drain }
23+
thread_a = worker_thread { job_a.perform_now }
24+
thread_b = worker_thread { job_b.perform_now }
2525
[thread_a, thread_b].each(&:join)
2626

2727
txn_a = transactions.find { |t| t.tags[:job] == "A" }

0 commit comments

Comments
 (0)