<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toranoana-lab</author_name>
  <author_url>https://blog.hatena.ne.jp/toranoana-lab/</author_url>
  <blog_title>虎の穴ラボ技術ブログ</blog_title>
  <blog_url>https://toranoana-lab.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>技術エントリ</anon>
  </categories>
  <description>こんにちは、虎の穴開発室です。 Railsでバックグラウンドで非同期処理を行う一般的な方法として、delayed_jobがよく使われます。このdelayed_jobにちょっとした工夫を加えることで、実運用を想定した以下要件を満たすことができます。 要件 メール送信とバッチ処理などdelayed_jobプロセスを分割する delayed_jobプロセスの死活を監視し、死んでいたら再起動する 再起動の結果をslackに通知する メール送信とバッチ処理などdelayed_jobプロセスを分割 メール送信とバッチ処理など複数の性質の異なるジョブを1つのdelayed_jobで実行すると、バッチ処理が終…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoranoana-lab.hatenablog.com%2Fentry%2F2018%2F01%2F26%2F204509&quot; title=&quot; delayed_jobの死活を監視して自動で再起動させる - 虎の穴ラボ技術ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/145443465/1514247375444429</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-26 20:45:09</published>
  <title> delayed_jobの死活を監視して自動で再起動させる</title>
  <type>rich</type>
  <url>https://toranoana-lab.hatenablog.com/entry/2018/01/26/204509</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
