{
  "version": "https://jsonfeed.org/version/1", 
  "title": "RQ", 
  "description": "Simple job queue for Python.", 
  "home_page_url": "https://www.v2ex.com/go/rq", 
  "feed_url": "https://www.v2ex.com/feed/rq.json", 
  "icon": "https://cdn.v2ex.com/navatar/a7ae/ed74/576_large.png?m=1386886819", 
  "favicon": "https://cdn.v2ex.com/navatar/a7ae/ed74/576_normal.png?m=1386886819", 
  "items": [
    {
      "author": {
        "url": "https://www.v2ex.com/member/Livid", 
        "name": "Livid", 
        "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1777863673"
      }, 
      "url": "https://www.v2ex.com/t/104241", 
      "title": "\u5173\u4e8e\u957f\u65f6\u95f4\u8fd0\u884c\u7684 rqworker", 
      "id": "https://www.v2ex.com/t/104241", 
      "date_published": "2014-03-14T01:12:12+00:00", 
      "content_html": "\u6700\u8fd1\u53d1\u73b0\u4e00\u4e2a\u5947\u602a\u7684\u95ee\u9898\uff0c\u8c8c\u4f3c\u5982\u679c\u4e00\u4e2a rqworker \u8fd0\u884c\u7684\u65f6\u95f4\u592a\u957f\uff0c\u5c31\u4f1a\u4e22\u5931 queue \u7684\u540d\u5b57\uff1f\u4e5f\u5c31\u662f\u4ece rqinfo \u91cc\u770b\u7684\u8bdd\uff0c\u90a3\u4e2a worker \u80cc\u540e\u662f\u6ca1\u6709\u540d\u5b57\u7684\u3002<br /><br />\u6709\u4eba\u4e5f\u9047\u5230\u8fc7\u8fd9\u4e2a\u95ee\u9898\u4e48\uff1f"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/dcoder", 
        "name": "dcoder", 
        "avatar": "https://cdn.v2ex.com/gravatar/a204977c46e5f372d2ff8d4194f62b16?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/92955", 
      "title": "Python RQ (Redis Queue) 0.4.0 \u5982\u4f55\uff1f", 
      "id": "https://www.v2ex.com/t/92955", 
      "date_published": "2013-12-12T22:07:42+00:00", 
      "content_html": "\u8fd8\u6ca1release\uff0c\u6709\u4eba\u77e5\u9053\u4ec0\u4e48\u65f6\u5019release\u5417\uff1f\u770b\u7740\u652f\u6301 Job dependencies.<br /><a href=\"https://github.com/nvie/rq/blob/master/CHANGES.md\" rel=\"nofollow\">https://github.com/nvie/rq/blob/master/CHANGES.md</a><br /><br />\u8fd8\u6709\uff0c\u8bf7\u95ee\u73b0\u5728\u5728\u7528 RQ \u7684\u670b\u53cb\uff0c\u8fd9\u4e2a\u4e1c\u897f\u7a33\u5b9a\u6027\uff0c\u6027\u80fd\u5982\u4f55\uff1f<br />\u4e3b\u8981\u6709\u54ea\u4e9b\u5751\uff1f\u542c\u8bf4\u6709\u4e9b worker \u4f1a\u83ab\u540d\u5730\u6302\u4e86\u3002\u8fd9\u4e2a\u80fd\u8bbe\u7f6e\u597d\u5417\uff1f<br /><br />\u6211\u770b\u4ee3\u7801base\u5f88\u5c0f\uff0c\u786e\u5b9e\u662f\u6781\u597d\u7684\u4f18\u70b9!!"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Livid", 
        "name": "Livid", 
        "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1777863673"
      }, 
      "url": "https://www.v2ex.com/t/81028", 
      "title": "RQ \u5bf9\u63d0\u9ad8\u6574\u4e2a\u5e94\u7528\u7684\u6027\u80fd\u5f88\u6709\u5e2e\u52a9", 
      "id": "https://www.v2ex.com/t/81028", 
      "date_published": "2013-09-02T02:47:24+00:00", 
      "content_html": "\u67d0\u4e9b\u590d\u6742\u7684\u8fd0\u7b97\uff0c\u53ef\u4ee5\u5207\u5272\u4e3a\u6570\u4e2a\u5c0f\u7684\u4efb\u52a1\uff0c\u7136\u540e\u5e76\u53d1\u6267\u884c\uff0c\u8fd9\u6837\u7684\u8bdd\uff0c\u6574\u4e2a\u7a0b\u5e8f\u7684\u5e76\u884c\u5316\u7a0b\u5ea6\u4e5f\u5c31\u8d8a\u6765\u8d8a\u9ad8\u4e86\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Livid", 
        "name": "Livid", 
        "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1777863673"
      }, 
      "url": "https://www.v2ex.com/t/80000", 
      "title": "\u5982\u679c\u57fa\u4e8e rq \u6765\u5f00\u53d1\u4e00\u4e2a MapReduce framework\uff1f", 
      "id": "https://www.v2ex.com/t/80000", 
      "date_published": "2013-08-23T06:54:53+00:00", 
      "content_html": ""
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/0bit", 
        "name": "0bit", 
        "avatar": "https://cdn.v2ex.com/avatar/9225/1e86/13456_large.png?m=1334998654"
      }, 
      "url": "https://www.v2ex.com/t/75201", 
      "title": "RQ\u4e2d\uff0c\u5728\u4e00\u4e2aQueue\u6267\u884c\u5b8c\u4e4b\u540e\u89e6\u53d1\u4e8b\u4ef6\u7684\u65b9\u6cd5", 
      "id": "https://www.v2ex.com/t/75201", 
      "date_published": "2013-07-09T00:44:38+00:00", 
      "content_html": "\u5148\u5410\u69fd\u4e00\u53e5\uff0cRQ\u7684\u5b98\u65b9\u6587\u6863\uff0c\u771f\u7684\u662f\u5c11\u5f97\u53ef\u601c\uff0c\u5f88\u591a\u4e1c\u897f\u90fd\u8981\u81ea\u5df1\u5230\u6e90\u7801\u91cc\u5f00\u624d\u4f1a\u53d1\u73b0\u3002<br /><br />\u6211\u73b0\u5728\u8981\u5904\u7406\u5f88\u591a\u5305\uff0c\u56e0\u4e3a\u8981\u6bcf\u4e2a\u5305\u72ec\u7acb\u5904\u7406\uff0c\u6240\u4ee5\u6bcf\u4e2a\u5305\u751f\u6210\u4e00\u4e2aQueue\uff0c\u7136\u540e\u6211\u9700\u8981\u7684\u662f\uff0c\u5728\u8fd9\u4e2aQueue\u5904\u7406\u5b8c\u6210\u4e4b\u540e\uff0c\u5bf9\u8fd9\u4e2aQueue\u7684\u7ed3\u679c\u8fdb\u884c\u7edf\u8ba1\uff0c\u8c8c\u4f3cRQ\u4e2d\u6ca1\u6709\u8fd9\u79cd\u89e6\u53d1\u673a\u5236\uff0c\u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u4ec0\u4e48\u597d\u7684\u65b9\u6cd5\u3002<br /><br />\u6211\u73b0\u5728\u7528\u7684\u65b9\u6cd5\u662f\uff0c\u4e0d\u7528rqworker\uff0c\u81ea\u5df1\u5728\u7a0b\u5e8f\u91cc\u8c03\u7528Worker\uff0c\u7136\u540e\u8bbe\u7f6eburst=True\uff0c\u628a\u76f8\u5173\u7684\u7edf\u8ba1\u4ee3\u7801\uff0c\u653e\u5230worker\u6267\u884c\u5b8c\u4e4b\u540e\uff0c\u4f46\u662f\u603b\u89c9\u5f97\u4e0d\u662f\u5341\u5206\u7684\u9760\u8c31\u3002<br /><br />\u4ee3\u7801\u5927\u6982\u662f\u8fd9\u6837\u7684\uff1a<br /><br />queueList = sorted([q for q in Queue.all() if q.name != 'failed'])<br />w = Worker(queueList.pop())<br />w.work(burst=True)<br /># \u76f8\u5173\u7684\u7edf\u8ba1\u51fd\u6570()"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Livid", 
        "name": "Livid", 
        "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1777863673"
      }, 
      "url": "https://www.v2ex.com/t/70757", 
      "title": "rq-dashboard", 
      "id": "https://www.v2ex.com/t/70757", 
      "date_published": "2013-05-31T05:36:33+00:00", 
      "content_html": "<a href=\"https://github.com/nvie/rq-dashboard\" rel=\"nofollow\">https://github.com/nvie/rq-dashboard</a><br /><br />\u8d5e\uff01"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/ergatea", 
        "name": "ergatea", 
        "avatar": "https://cdn.v2ex.com/avatar/d1a6/9640/1537_large.png?m=1358965200"
      }, 
      "url": "https://www.v2ex.com/t/59601", 
      "title": "Rq \u6267\u884c\u7684\u7684\u4efb\u52a1\u8c8c\u4f3c\u5bf9\u4e2d\u6587\u652f\u6301\u4e0d\u4f73", 
      "id": "https://www.v2ex.com/t/59601", 
      "date_published": "2013-02-02T12:20:59+00:00", 
      "content_html": "def fetch_post_request(path, post):<br />    http = tornado.httpclient.HTTPClient()<br /><br />    if not obj:<br />        obj = db.Post()<br />    else:<br /><br />        if 'hash' in obj['metadata'].keys():<br />            uri = \"http://localhost:5000/%s/post/%s?cmd=original&hash=%s\" % \\<br />                (path, slug, obj.metadata['hash'])<br /><br />    try:<br />        response = http.fetch(uri)<br /><br />        print unicode(uri, \"utf-8\")<br />        response.rethrow()<br />        obj.body = unicode(response.body, \"utf-8\")<br />        print json.loads(response.headers[\"x-dropbox-metadata\"])<br />        obj.metadata = json.loads(response.headers[\"x-dropbox-metadata\"])<br />        obj.save()<br />=====<br />\u901a\u8fc7 tornado.httpclient.HTTPClient() \u7684\u4ee3\u7801 \u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u5e26\u6709\u4e2d\u6587url\u8def\u5f84\u5c31\u4e0d\u80fd\u5904\u7406\u7f16\u7801"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Livid", 
        "name": "Livid", 
        "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1777863673"
      }, 
      "url": "https://www.v2ex.com/t/38431", 
      "title": "\u5173\u4e8e RQ \u7684\u4efb\u52a1\u91cd\u8bd5\u673a\u5236", 
      "id": "https://www.v2ex.com/t/38431", 
      "date_published": "2012-06-05T02:24:28+00:00", 
      "content_html": "\u5982\u679c\u4e00\u4e2a job \u7b2c\u4e00\u6b21\u8fd0\u884c\u7684\u65f6\u5019\u5931\u8d25\uff0c\u90a3\u4e48\u4f1a\u88ab\u653e\u5165\u5230\u4e00\u4e2a\u53eb\u505a failed \u7684 queue\u3002<br /><br />\u800c\u8fd9\u4e2a\u65f6\u5019\u4f60\u53ea\u8981\u542f\u52a8 rqworker failed \u5c31\u53ef\u4ee5\u8fdb\u884c\u91cd\u8bd5\u3002<br /><br />\u4f60\u751a\u81f3\u53ef\u4ee5\u52a0\u4e0a --burst \u8ba9\u8fd9\u4e2a\u4e34\u65f6\u7684 worker \u5728\u5904\u7406\u5b8c\u6240\u6709\u7684 failed \u4efb\u52a1\u4e4b\u540e\u5c31\u81ea\u52a8\u9000\u51fa\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Sokos", 
        "name": "Sokos", 
        "avatar": "https://cdn.v2ex.com/avatar/5934/c1ec/8127_large.png?m=1332488651"
      }, 
      "url": "https://www.v2ex.com/t/38304", 
      "title": "\u8fd9\u91cc\u6709\u4eba\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528RQ\u9ebd\uff1f", 
      "id": "https://www.v2ex.com/t/38304", 
      "date_published": "2012-06-03T15:30:37+00:00", 
      "content_html": "\u6628\u5929\u521a\u521a\u770b\u5230RQ \uff08 <a target=\"_blank\" href=\"http://python-rq.org/\">http://python-rq.org/</a> \uff09\uff0c\u521a\u624d\u53d1\u73b0\u589e\u52a0\u4e86RQ\u8282\u70b9\uff0c\u60f3\u95ee\u95ee\u8fd9\u91cc\u6709\u4eba\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528RQ\u9ebd\uff1f\u6709\u4e9b\u4ec0\u4e48\u53ef\u4ee5\u5206\u4eab\uff1f"
    }
  ]
}