<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sfujiwara</author_name>
  <author_url>https://blog.hatena.ne.jp/sfujiwara/</author_url>
  <blog_title>酒日記 はてな支店</blog_title>
  <blog_url>https://sfujiwara.hatenablog.com/</blog_url>
  <categories>
    <anon>perl</anon>
  </categories>
  <description>TheSchwartz の worker で、一つの job が worker-&gt;grab_for (default 3600) 秒以上掛かる処理をすると、処理中の job を他の worker が掴んでしまう。具体的には大量のメール送信をしていたんだけど、Data::Valve でスロットリングしてゆっくり送っていたら 1時間以上掛かって、別の worker も同じ job を実行してしまった。結果、同じメールが 2通ずつ出た orzgrab_for は job を処理しはじめた worker が、失敗を報告もできないでクラッシュした場合に、別の worker が処理できるようにするもの。し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsfujiwara.hatenablog.com%2Fentry%2F20080731%2F1217484591&quot; title=&quot; TheSchwartz で時間が掛かる job を実行するときは grab_for に注意 - 酒日記 はてな支店&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-07-31 15:09:51</published>
  <title> TheSchwartz で時間が掛かる job を実行するときは grab_for に注意</title>
  <type>rich</type>
  <url>https://sfujiwara.hatenablog.com/entry/20080731/1217484591</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
