public this repo is viewable by everyone
Description: Database based asynchronously priority queue system -- Extracted from Shopify
Homepage: http://www.shopify.com
Clone URL: git://github.com/tobi/delayed_job.git
More formatting updates for readme
Tobias Lütke (author)
about 1 month ago
commit  0880b0f0924b41562b19b4b03a89b85bf660f02d
tree    06eb73a406df81edc7e0930ed9fefec44bdca011
parent  d0378cd3b73e60454b87504c7cc987341ee8dde8
...
57
58
59
60
 
61
62
63
 
 
64
65
66
 
67
68
 
69
70
71
 
72
73
 
74
75
 
76
77
78
...
98
99
100
 
...
57
58
59
 
60
61
62
 
63
64
65
66
 
67
68
 
69
70
71
 
72
73
 
74
75
 
76
77
78
79
...
99
100
101
102
0
@@ -57,22 +57,23 @@ which are stored as their text representation and loaded from the database fresh
0
                                                                                                                     
0
 h2. Running the tasks
0
 
0
-You can invoke rake jobs:work which will start working off jobs. You can cancel the rake task by CTRL-C.
0
+You can invoke @rake jobs:work@ which will start working off jobs. You can cancel the rake task by @CTRL-C@.
0
 
0
 At Shopify we run the the tasks from a simple script/job_runner which is being invoked by runnit:
0
-
0
+
0
+<pre><code>
0
   #!/usr/bin/env ruby
0
   require File.dirname(__FILE__) + '/../config/environment'
0
-
0
+
0
   SLEEP = 5
0
-
0
+
0
   trap('TERM') { puts 'Exiting...'; $exit = true }
0
   trap('INT') { puts 'Exiting...'; $exit = true }
0
-
0
+
0
   puts "*** Staring job worker #{Delayed::Job.worker_name}"
0
-
0
+
0
   begin
0
-
0
+
0
     loop do
0
       result = nil
0
   
0
@@ -98,3 +99,4 @@ At Shopify we run the the tasks from a simple script/job_runner which is being i
0
   ensure
0
     Delayed::Job.clear_locks!
0
   end
0
+</code></pre>

Comments

    No one has commented yet.