Database Manual / Reference / mongosh Methods / Atlas Stream Processing

sp.processor.start() (mongosh method)

Definition

sp.processor.start()

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

Compatibility

This method is supported in Atlas Stream Processing Instances.

Syntax

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

sp.processor.start()

Command Fields

sp.processor.start() takes no fields.

Behavior

sp.processor.start() starts a named stream processor on the current stream processing instance. The stream processor must be in a STOPPED state. If you invoke sp.processor.start() for a stream processor that is not STOPPED, mongosh will return an error.

Access Control

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

Example

The following example starts a stream processor named solarDemo.

sp.solarDemo.start()

Learn More