Docs Menu
Docs Home
/
MongoDB Manual
/ / /

sp.processor.stop()

On this page

  • Definition
  • Syntax
  • Command Fields
  • Behavior
  • Access Control
  • Example
  • Learn More
sp.processor.stop()

New in version 7.0: Stops a named Stream Processor on the current Stream Processing Instance.

The sp.processor.stop() method has the following syntax:

sp.processor.stop()

sp.processor.stop() takes no fields.

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.

The user running sp.processor.stop() must have the atlasAdmin role.

The following example stops a stream processor named solarDemo.

sp.solarDemo.stop()
  • Manage Stream Processors

Back

sp.processor.stats