<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nishino</title>
    <description>The latest articles on DEV Community by Nishino (@michiya59).</description>
    <link>https://dev.to/michiya59</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4032950%2F4d2375a9-3a3e-4c9e-ad5e-e41816329c5d.png</url>
      <title>DEV Community: Nishino</title>
      <link>https://dev.to/michiya59</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michiya59"/>
    <language>en</language>
    <item>
      <title>Solid Queue has no alerting, so I built QueuePulse</title>
      <dc:creator>Nishino</dc:creator>
      <pubDate>Fri, 17 Jul 2026 02:00:40 +0000</pubDate>
      <link>https://dev.to/michiya59/solid-queue-has-no-alerting-so-i-built-queuepulse-1lfm</link>
      <guid>https://dev.to/michiya59/solid-queue-has-no-alerting-so-i-built-queuepulse-1lfm</guid>
      <description>&lt;p&gt;Rails 8 made Solid Queue the default Active Job backend, and it's excellent: database-backed, no Redis, and Mission Control Jobs gives you a dashboard.&lt;/p&gt;

&lt;p&gt;But there's a gap nobody talks about: &lt;strong&gt;nothing tells you when things break.&lt;/strong&gt; Mission Control is a window you have to remember to look through. It has no alerting and no historical metrics. In practice that means one of two things happens:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You find out your jobs have been failing for three days when a customer emails you, or&lt;/li&gt;
&lt;li&gt;You bolt on Datadog/New Relic — a heavyweight APM subscription to answer "did my background jobs fail?"&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For small and mid-size Rails apps, neither is great. So I built &lt;a href="https://github.com/michiya-59/queue_pulse" rel="noopener noreferrer"&gt;QueuePulse&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;QueuePulse reads Solid Queue's &lt;strong&gt;existing tables&lt;/strong&gt; — read-only, no migration, no extra service, no agent process — and notifies you the moment one of five things happens:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Fires when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🔴 Job failures&lt;/td&gt;
&lt;td&gt;a job lands in &lt;code&gt;failed_executions&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🟠 Queue latency&lt;/td&gt;
&lt;td&gt;the oldest ready job has waited past your threshold&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🟠 Queue depth&lt;/td&gt;
&lt;td&gt;a queue backs up beyond N jobs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🟠 Stuck jobs&lt;/td&gt;
&lt;td&gt;a job has been "running" far longer than it should&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🔴 Dead workers&lt;/td&gt;
&lt;td&gt;no worker/dispatcher heartbeat — nothing is processing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Alerts go to Slack, email, or any webhook.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup (2 minutes)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Gemfile&lt;/span&gt;
&lt;span class="n"&gt;gem&lt;/span&gt; &lt;span class="s2"&gt;"queue_pulse"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ruby"&gt;&lt;code&gt;&lt;span class="c1"&gt;# config/initializers/queue_pulse.rb&lt;/span&gt;
&lt;span class="no"&gt;QueuePulse&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;configure&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_notifier&lt;/span&gt; &lt;span class="no"&gt;QueuePulse&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Notifiers&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;Slack&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ss"&gt;webhook_url: &lt;/span&gt;&lt;span class="no"&gt;ENV&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"SLACK_WEBHOOK_URL"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="k"&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then schedule the check with Solid Queue's own recurring tasks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# config/recurring.yml&lt;/span&gt;
&lt;span class="na"&gt;queue_pulse_check&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;QueuePulse::CheckJob&lt;/span&gt;
  &lt;span class="na"&gt;schedule&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;every minute&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Every setting (thresholds, cooldowns) has a sensible default you can override.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design principles
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No new infrastructure.&lt;/strong&gt; It piggybacks on tables you already have. Dedupe state lives in &lt;code&gt;Rails.cache&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safe by default.&lt;/strong&gt; Read-only queries; every check and notifier is exception-isolated, so QueuePulse can never take down your app. Raw job arguments are never sent unless you opt in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quiet.&lt;/strong&gt; Cooldowns + burst-collapsing (one alert for 500 identical failures, not 500 alerts).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  It's free
&lt;/h2&gt;

&lt;p&gt;MIT-licensed, on &lt;a href="https://rubygems.org/gems/queue_pulse" rel="noopener noreferrer"&gt;RubyGems&lt;/a&gt;. A hosted dashboard with historical metrics is on the roadmap (&lt;a href="https://queue-pulse.vercel.app" rel="noopener noreferrer"&gt;waitlist here&lt;/a&gt;), but the gem is and stays open source.&lt;/p&gt;

&lt;p&gt;If you run Solid Queue in production I'd genuinely love feedback — what would you want alerted on that's missing? Issues and PRs welcome: &lt;a href="https://github.com/michiya-59/queue_pulse" rel="noopener noreferrer"&gt;https://github.com/michiya-59/queue_pulse&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rails</category>
      <category>ruby</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
