Skip to content

Commit 410f22b

Browse files
committed
Added reworkeroutput.
1 parent b321e20 commit 410f22b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

workers/reworkeroutput.rst

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
RE-WORKER-OUTPUT
2+
----------------
3+
Release Engine Worker Plugin consumes output from other works on the bus and writes it to files.
4+
5+
.. note::
6+
This is an output consumer and is not meant to be used in steps.
7+
8+
9+
This worker takes two configuration files. The first is the worker configuration file. It should look like this:
10+
11+
.. code-block:: json
12+
13+
{
14+
"queue": "output",
15+
"output_dir": "/tmp/"
16+
}
17+
18+
* Set the ``output_dir`` to where the output files should reside.
19+
20+
21+
The second configuration file is the normal MQ configuration:
22+
23+
.. code-block:: json
24+
25+
{
26+
"server": "127.0.0.1",
27+
"port": 5672,
28+
"vhost": "/",
29+
"user": "guest",
30+
"password": "guest"
31+
}
32+
33+
* Set the ``MQ config file`` parameters to sane values (see also:
34+
:ref:`Setting Up The Bus<setting_up_the_bus>`)
35+
* Run the worker: ``python ./replugin/outputworker/__init__.py` -w $YOUR_CONFIG_FILE.json $YOUR_MQ_CONF.json``
36+
37+
We should see output similar to the following if everything well:
38+
39+
.. code-block:: bash
40+
41+
[user@frober re-worker-output]$ python ./replugin/outputworker/__init__.py -w myconf.json mq.json
42+
2014-05-19 14:39:47,080 - IRCNotifyWorker - WARNING - No app logger passed in. Defaulting to Streamandler with level INFO.
43+
2014-05-19 14:39:47,083 - IRCNotifyWorker - INFO - Attempting connection with amqp://inceptadmin:***@messagebus.example.com:5672/
44+
2014-05-19 14:39:47,412 - IRCNotifyWorker - INFO - Connection and channel open.
45+
2014-05-19 14:39:47,413 - IRCNotifyWorker - INFO - Consuming on queue worker.outputworker

0 commit comments

Comments
 (0)