Sean Wilkinson avatar Sean Wilkinson committed 36b4ca0

Limited the size of the queue to 20 entries

Comments (0)

Files changed (3)

couchdb-app/_attachments/index.html

     <noscript>Please enable JavaScript in your browser.</noscript>
     <ul>
       <li>
-        <a href="http://quanah.couchone.com:5984/_utils">Admin</a>
+        <a href="javascript:alert('Coming soon ...');">Login</a>
       </li>
       <li>
-        <a href="http://quanah.couchone.com/?developer=true">Developer</a>
+        <a href="?developer=true">Developer</a>
       </li>
       <li>
-        <a href="http://quanah.couchone.com/?volunteer=true">Volunteer</a>
+        <a href="?volunteer=true">Volunteer</a>
       </li>
       <li>
         <a href="http://goo.gl/tRxfM">Source</a>
       </li>
       <li>
-        <a href="db/_changes?filter=quanah/queue&limit=20">Queue</a>
+        <a href="./db/_changes?filter=quanah/queue&limit=20">Queue</a>
       </li>
     </ul>
-    <script src="quanah.js"></script>
-    <script src="fs.js"></script>
+    <script src="./quanah.js"></script>
+    <script src="./fs.js"></script>
   </body>
 </html>

couchdb-app/_attachments/quanah.js

                         var temp;
                         if (err === null) {
                             if (res.val.status === 'done' ||
-                                res.val.status === 'failed') {
+                                    res.val.status === 'failed') {
                                 global.clearInterval(timer);
                                 if (q.argv.debug === true) {
                                     q.puts('Cleared timer :-)');

couchdb-app/_attachments/volunteer.js

 
  // Declarations
 
-    var countdown, sync, timer, volunteer, waiting;
+    var countdown, limit, sync, timer, volunteer, waiting;
 
  // Definitions (n/a)
 
         };
     };
 
+    limit = 20;
+
     sync = q.fs$sync;
 
     volunteer = function () {
         q.fs$read(waiting, function (err, res) {
-            var queue, task;
+            var queue, index, task;
             if (err !== null) {
              // This is sloppy but very helpful for debugging right now ...
                 if (q.argv.debug === true) {
         });
     };
 
-    waiting = '_changes?filter=quanah/queue&status=waiting';
+    waiting = '_changes?filter=quanah/queue&status=waiting&limit=' + limit;
 
  // Invocations
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.