-
Notifications
You must be signed in to change notification settings - Fork 8
/
show.html
276 lines (182 loc) · 12.8 KB
/
show.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SHOW — Disque 使用教程</title>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="top" title="Disque 使用教程" href="index.html"/>
<link rel="next" title="ACKJOB" href="ackjob.html"/>
<link rel="prev" title="QPEEK" href="qpeek.html"/>
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-nav-search">
<a href="index.html" class="icon icon-home"> Disque 使用教程
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul>
<li class="toctree-l1"><a class="reference internal" href="install.html">安装方法</a></li>
<li class="toctree-l1"><a class="reference internal" href="client.html">客户端</a></li>
<li class="toctree-l1"><a class="reference internal" href="single-node.html">搭建单节点集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="multi-nodes.html">搭建多节点集群</a></li>
</ul>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="addjob.html">ADDJOB</a></li>
<li class="toctree-l1"><a class="reference internal" href="getjob.html">GETJOB</a></li>
<li class="toctree-l1"><a class="reference internal" href="qlen.html">QLEN</a></li>
<li class="toctree-l1"><a class="reference internal" href="qpeek.html">QPEEK</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="">SHOW</a></li>
<li class="toctree-l1"><a class="reference internal" href="ackjob.html">ACKJOB</a></li>
<li class="toctree-l1"><a class="reference internal" href="fastack.html">FASTACK</a></li>
<li class="toctree-l1"><a class="reference internal" href="info.html">INFO</a></li>
<li class="toctree-l1"><a class="reference internal" href="hello.html">HELLO</a></li>
<li class="toctree-l1"><a class="reference internal" href="enqueue.html">ENQUEUE</a></li>
<li class="toctree-l1"><a class="reference internal" href="dequeue.html">DEQUEUE</a></li>
<li class="toctree-l1"><a class="reference internal" href="deljob.html">DELJOB</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="cluster-nodes.html">CLUSTER NODES</a></li>
<li class="toctree-l1"><a class="reference internal" href="cluster-meet.html">CLUSTER MEET</a></li>
<li class="toctree-l1"><a class="reference internal" href="cluster-forget.html">CLUSTER FORGET</a></li>
<li class="toctree-l1"><a class="reference internal" href="cluster-info.html">CLUSTER INFO</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="job_ids.html">任务 ID</a></li>
<li class="toctree-l1"><a class="reference internal" href="code-analysis.html">Disque 源码分析</a><ul>
<li class="toctree-l2"><a class="reference internal" href="code-analysis.html#id1">代码重用</a></li>
<li class="toctree-l2"><a class="reference internal" href="code-analysis.html#id2">服务器状态</a></li>
<li class="toctree-l2"><a class="reference internal" href="code-analysis.html#id3">队列</a></li>
<li class="toctree-l2"><a class="reference internal" href="code-analysis.html#id4">任务</a></li>
<li class="toctree-l2"><a class="reference internal" href="code-analysis.html#id5">节点与集群</a></li>
<li class="toctree-l2"><a class="reference internal" href="code-analysis.html#id6">命令执行流程</a></li>
<li class="toctree-l2"><a class="reference internal" href="code-analysis.html#id7">结论</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">Disque 使用教程</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> »</li>
<li>SHOW</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/show.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document">
<div class="section" id="show">
<h1>SHOW<a class="headerlink" href="#show" title="永久链接至标题">¶</a></h1>
<div class="highlight-lua"><div class="highlight"><pre><span class="n">SHOW</span> <span class="o"><</span><span class="n">job</span><span class="o">-</span><span class="n">id</span><span class="o">></span>
</pre></div>
</div>
<p>返回任务的相关描述。</p>
<div class="highlight-lua"><div class="highlight"><pre><span class="n">disque</span><span class="o">></span> <span class="n">SHOW</span> <span class="n">DI216f7fa19e1bbe6f583061dbba0e8e28c6eb64e605a0SQ</span>
<span class="mi">1</span><span class="p">)</span> <span class="s2">"</span><span class="s">id"</span> <span class="c1">-- 任务 ID</span>
<span class="mi">2</span><span class="p">)</span> <span class="s2">"</span><span class="s">DI216f7fa19e1bbe6f583061dbba0e8e28c6eb64e605a0SQ"</span>
<span class="mi">3</span><span class="p">)</span> <span class="s2">"</span><span class="s">queue"</span> <span class="c1">-- 所属队列</span>
<span class="mi">4</span><span class="p">)</span> <span class="s2">"</span><span class="s">greeting"</span>
<span class="mi">5</span><span class="p">)</span> <span class="s2">"</span><span class="s">state"</span> <span class="c1">-- 任务状态</span>
<span class="mi">6</span><span class="p">)</span> <span class="s2">"</span><span class="s">queued"</span>
<span class="mi">7</span><span class="p">)</span> <span class="s2">"</span><span class="s">repl"</span>
<span class="mi">8</span><span class="p">)</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span> <span class="mi">1</span>
<span class="mi">9</span><span class="p">)</span> <span class="s2">"</span><span class="s">ttl"</span> <span class="c1">-- 生存时间</span>
<span class="mi">10</span><span class="p">)</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span> <span class="mi">86080</span>
<span class="mi">11</span><span class="p">)</span> <span class="s2">"</span><span class="s">ctime"</span> <span class="c1">-- 创建时间</span>
<span class="mi">12</span><span class="p">)</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span> <span class="mi">1430193729317000000</span>
<span class="mi">13</span><span class="p">)</span> <span class="s2">"</span><span class="s">delay"</span> <span class="c1">-- 是否延迟?</span>
<span class="mi">14</span><span class="p">)</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span> <span class="mi">0</span>
<span class="mi">15</span><span class="p">)</span> <span class="s2">"</span><span class="s">retry"</span> <span class="c1">-- 何时进行重试?</span>
<span class="mi">16</span><span class="p">)</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span> <span class="mi">8640</span>
<span class="mi">17</span><span class="p">)</span> <span class="s2">"</span><span class="s">nodes-delivered"</span> <span class="c1">-- 已向以下节点发送该任务</span>
<span class="mi">18</span><span class="p">)</span> <span class="mi">1</span><span class="p">)</span> <span class="s2">"</span><span class="s">216f7fa1b58239ad29dd64c02bfe50e609e88575"</span>
<span class="mi">19</span><span class="p">)</span> <span class="s2">"</span><span class="s">nodes-confirmed"</span> <span class="c1">-- 以下节点已确认收到该任务</span>
<span class="mi">20</span><span class="p">)</span> <span class="p">(</span><span class="n">empty</span> <span class="n">list</span> <span class="ow">or</span> <span class="n">set</span><span class="p">)</span>
<span class="mi">21</span><span class="p">)</span> <span class="s2">"</span><span class="s">next-requeue-within"</span>
<span class="mi">22</span><span class="p">)</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span> <span class="mi">8319321</span>
<span class="mi">23</span><span class="p">)</span> <span class="s2">"</span><span class="s">next-awake-within"</span>
<span class="mi">24</span><span class="p">)</span> <span class="p">(</span><span class="n">integer</span><span class="p">)</span> <span class="mi">8318821</span>
<span class="mi">25</span><span class="p">)</span> <span class="s2">"</span><span class="s">body"</span> <span class="c1">-- 任务的内容</span>
<span class="mi">26</span><span class="p">)</span> <span class="s2">"</span><span class="s">good morning!"</span>
</pre></div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="ackjob.html" class="btn btn-neutral float-right" title="ACKJOB" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="qpeek.html" class="btn btn-neutral" title="QPEEK" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div class="section" id="discuss">
<h2>
论坛
<a class="headerlink" href="#discuss" title="永久链接至标题">¶</a>
</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'disquebook'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<div role="contentinfo">
<p>
© 版权所有 2015, 黄健宏(huangz).
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'1.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/translations.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>