File: trying_sample_commands.rst

package info (click to toggle)
receptor 1.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,772 kB
  • sloc: python: 1,643; makefile: 305; sh: 174
file content (53 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (2)
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
###################
Try Sample Commands
###################

.. note::
    You must complete the prior steps of network setup and Receptor installation for these commands to work.

1. Show network status

.. code-block:: bash

    receptorctl --socket /tmp/foo.sock status

2. Ping node baz from node foo

.. code-block:: bash

    receptorctl --socket /tmp/foo.sock ping baz

3. Submit work from foo to baz and stream results back to foo

.. code-block:: bash

    seq 10 | receptorctl --socket /tmp/foo.sock work submit --node baz echo --payload - -f

4. List work units

.. code-block:: bash

    receptorctl --socket /tmp/foo.sock work list --node foo

5. Get work unit id using jq

.. code-block:: bash

    receptorctl --socket /tmp/foo.sock work list --node foo | jq --raw-output '.|keys|first'

6. Re-stream the work results from work unit

.. code-block:: bash

    receptorctl --socket /tmp/foo.sock work results work_unit_id

Congratulations, Receptor is now ready to use!

.. seealso::

    :ref:`control_service_commands`
        Control service commands
    :ref:`creating_a_basic_network`
        Creating a Basic Network
    :ref:`installing_receptor`
        Installing Receptor