-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathsp.processor.stop.txt
73 lines (48 loc) · 1.49 KB
/
sp.processor.stop.txt
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
===================
sp.processor.stop()
===================
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 2
:class: singlecol
Definition
-----------
.. method:: sp.processor.stop()
.. versionadded:: 7.0
Stops a named
:atlas:`Stream Processor
</atlas-sp/overview/#mongodb-expression-exp.Stream-Processor>` on
the current :atlas:`Stream Processing Instance
</atlas-sp/overview/#mongodb-expression-exp.Stream-Processing-Instance>`.
Compatibility
-------------
.. include:: /includes/fact-environments-atlas-support-stream-processing-only.rst
Syntax
-----------
The :method:`sp.processor.stop()` method has the following syntax:
.. code-block:: sh
sp.processor.stop()
Command Fields
---------------------------
``sp.processor.stop()`` takes no fields.
Behavior
---------------
``sp.processor.stop()`` stops a named stream processor on the
current stream processing instance. The stream processor must be in a
``running`` state. If you invoke ``sp.processor.stop()`` for a
stream processor that is not ``running``, ``mongosh`` will return an error.
Access Control
------------------------
The user running ``sp.processor.stop()`` must have the
:atlasrole:`atlasAdmin` role.
Example
----------------
The following example stops a stream processor named ``solarDemo``.
.. code-block::
:copyable: true
sp.solarDemo.stop()
Learn More
------------------
- :atlas:`Manage Stream Processors </atlas-sp/manage-stream-processor>`