Sha256: f265eab30a62c201869f570f054e047a4b23cadfcf6c0f9fdf25c1f9b908688a
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <!-- getjob (RQ::JobQueue) --> <html> <head> <title>getjob (RQ::JobQueue)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" /> </head> <body> <pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/jobqueue.rb, line 600</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getjob</span> <span class="ruby-comment cmt">#--{{{</span> <span class="ruby-identifier">sql</span> = <span class="ruby-value str">"select * from jobs\nwhere\n(state='pending' or (state='dead' and (not restartable isnull))) and\n(runner like '%\#{ Util::host }%' or runner isnull)\norder by priority desc, submitted asc, jid asc\nlimit 1;\n"</span> <span class="ruby-identifier">tuples</span> = <span class="ruby-identifier">execute</span> <span class="ruby-identifier">sql</span> <span class="ruby-identifier">job</span> = <span class="ruby-identifier">tuples</span>.<span class="ruby-identifier">first</span> <span class="ruby-identifier">job</span> <span class="ruby-comment cmt">#--}}}</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rq-3.0.0 | doc/classes/RQ/JobQueue.src/M000186.html |
rq-3.1.0 | doc/classes/RQ/JobQueue.src/M000186.html |