<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <generator>Persumi - Level up your writing and blogging with AI</generator>
  <category label="Blog" scheme="http://persumi.com/u/fredwu/tech/e/blog" term="blog"/>
  <category label="Tech" scheme="http://persumi.com/u/fredwu/tech" term="tech"/>
  <link href="http://persumi.com/u/fredwu/tech/e/blog/t/queue"/>
  <link href="http://persumi.com/u/fredwu/tech/e/blog/t/queue/feed/rss"/>
  <link rel="self" href="http://persumi.com/u/fredwu/tech/e/blog/t/queue/feed/atom"/>
  <author>
    <name>Fred Wu</name>
    <email>ifredwu@gmail.com</email>
    <uri>http://persumi.com/u/fredwu</uri>
  </author>
  <subtitle/>
  <id>http://persumi.com/u/fredwu/tech/e/blog/t/queue</id>
  <title>Blog (queue) - Fred Wu&apos;s Tech</title>
  <updated>2026-05-16T04:46:42.542817Z</updated>
  <entry>
    <content type="html">&lt;![CDATA[&lt;p&gt;
If you don’t already know, ’&lt;a href=&quot;http://github.com/collectiveidea/delayed_job&quot;&gt;delayed_job&lt;/a&gt;’ is a database based asynchronously priority queue system extracted from &lt;a href=&quot;http://www.shopify.com/&quot;&gt;Shopify&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
I was seeking for a lightweight, easy to use solution for queueing tasks, ‘delayed&lt;em&gt;job’ fits the bill _almost&lt;/em&gt; perfectly. ;)&lt;/p&gt;
&lt;p&gt;
One thing we needed to do for a Rails 2 project at &lt;a href=&quot;http://envato.com/&quot;&gt;Envato&lt;/a&gt;, was to queue the tasks and to run them one after another, at a set interval. ‘delayed_job’ unfortunately doesn’t come with this feature.&lt;/p&gt;
&lt;p&gt;
So, instead of searching for more complicated solutions or reinventing the wheels, I&lt;a href=&quot;http://github.com/fredwu/delayed_job&quot;&gt;made a couple of commits to my fork&lt;/a&gt; to add this functionality as well as to fix some rails 3 compatibility issues.&lt;/p&gt;
&lt;p&gt;
Now you can simply add the following line to your &lt;code class=&quot;inline&quot;&gt;config/initializers/delayed_job_config.rb&lt;/code&gt; file to have the tasks run at 1 minute interval.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;ruby language-ruby&quot;&gt;Delayed::Worker.run_interval = 60&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
A pull request has been issued, hopefully it’ll come as a standard feature soon. :)&lt;/p&gt;
]]&gt;</content>
    <published>2010-03-25T11:53:00.000000Z</published>
    <category label="Blog" scheme="http://persumi.com/u/fredwu/tech/e/blog" term="blog"/>
    <category label="Tech" scheme="http://persumi.com/u/fredwu/tech" term="tech"/>
    <link href="http://persumi.com/u/fredwu/tech/e/blog/p/rails-run-queued-tasks-using-delayed-job-now-with-intervals"/>
    <author>
      <name>Fred Wu</name>
      <email>ifredwu@gmail.com</email>
      <uri>http://persumi.com/u/fredwu</uri>
    </author>
    <id>http://persumi.com/u/fredwu/tech/e/blog/p/rails-run-queued-tasks-using-delayed-job-now-with-intervals</id>
    <title>[Rails] Run Queued Tasks Using &apos;delayed_job&apos;, Now With Intervals!</title>
    <updated>2010-03-25T11:53:00.000000Z</updated>
  </entry>
</feed>