-
Hello. 👋 I've been using the following code to build release notes by shelling to the system with Async 2.25.0 and earlier: barrier = Async::Barrier.new
Sync do
tasks = projects_data.all.select(&:publishable?).sort_by(&:name).map do |project|
root = BUILD_DIR.join("feeds/projects").mkpath
barrier.async do
CACHE_DIR.join("projects", project.name).change_dir do
system "milestoner build --format feed --max 10 --tail tag " \
"--output #{root} --basename #{project.name}"
end
end
end
tasks.each(&:wait)
ensure
barrier.stop
end All this does is run the Milestoner CLI to build release notes for each project in the cache directory (nothing fancy). I never had a problem with this until upgrading to 2.26.0 and higher. Starting with 2.26.0, I started getting the following stack dumps for each failed task: Example Stack Dump
If I add a Based on the Release Notes, I see there were |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
At first glance that does seem a bit odd. I'll review it in more detail. Okay, here is the fix: #414 Also, in your code better to replace |
Beta Was this translation helpful? Give feedback.
At first glance that does seem a bit odd. I'll review it in more detail.
Okay, here is the fix: #414
Also, in your code better to replace
tasks.each(&:wait)
withbarrier.wait
.