Skip to content

Commit 2193b7c

Browse files
committed
[FIX] connector-runner: documentation typos
1 parent 24f54e0 commit 2193b7c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

connector/doc/guides/multiprocessing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Use the connector with multiprocessing workers
1010
supports job channels. You should try the job runner first
1111
and fall back to using workers in case the runner does not
1212
work (sic) for you, in which case we will very much appreciate
13-
a github issue describing the problems you encoutered.
13+
a github issue describing the problems you encountered.
1414

1515
When Odoo is launched with 1 process, the jobs worker will run
1616
threaded in the same process.

connector/jobrunner/channels.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,12 @@ class Channel(object):
302302
---------------------+
303303
|
304304
|
305-
Ch. A W:4,Q:12,R:4 +-----------------------
305+
Ch. A C:4,Q:12,R:4 +-----------------------
306306
307-
---------------------+ Ch. root W:5,Q:0,R:4
307+
---------------------+ Ch. root C:5,Q:0,R:4
308308
|
309309
---------------------+
310-
Ch. B W:1,Q:0,R:0
310+
Ch. B C:1,Q:0,R:0
311311
---------------------+-----------------------
312312
313313
The above diagram illustrates two channels joining in the root channel.
@@ -369,7 +369,7 @@ def get_subchannel_by_name(self, subchannel_name):
369369
return self.children.get(subchannel_name)
370370

371371
def __str__(self):
372-
return "%s(W:%d,Q:%d,R:%d,F:%d)" % (self.fullname,
372+
return "%s(C:%d,Q:%d,R:%d,F:%d)" % (self.fullname,
373373
self.capacity,
374374
len(self._queue),
375375
len(self._running),
@@ -505,7 +505,7 @@ class ChannelManager(object):
505505
[<ChannelJob B1>, <ChannelJob A1>, <ChannelJob A2>, <ChannelJob A3>]
506506
507507
Job A2 is done. Next job to run is A5, even if we have
508-
higher priority job in channel B, because channel B as a capacity of 1.
508+
higher priority job in channel B, because channel B has a capacity of 1.
509509
510510
>>> cm.notify(db, 'A', 'A2', 2, 0, 10, None, 'done')
511511
>>> pp(list(cm.get_jobs_to_run(now=100)))

0 commit comments

Comments
 (0)