Skip to content

Commit 012d4a6

Browse files
committed
fix async job execution regression
1 parent ebf3642 commit 012d4a6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

features/step_definitions/worker_steps.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ def drain_async_jobs
1010
active_job.jobs.each do |job|
1111
case job['wrapped']
1212
when AsyncCreatable::CreateAsyncJob.name, AsyncUpdatable::UpdateAsyncJob.name,
13-
AsyncTouchable::TouchAsyncJob.name, AsyncDestroyable::DestroyAsyncJob.name
13+
AsyncTouchable::TouchAsyncJob.name, AsyncDestroyable::DestroyAsyncJob.name,
14+
ActiveRecord::DestroyAssociationAsyncJob.name
1415
active_job.process_job(job)
1516
end
1617
end
18+
19+
YankArtifactWorker.drain
1720
end
1821

1922
Then /^sidekiq should (?:have|process) (\d+) "([^\"]*)" jobs?(?: queued in ([.\d]+ \w+))?$/ do |expected_count, worker_name, queued_at|

0 commit comments

Comments
 (0)