For AI agents: a documentation index is available at https://www.mongodb.com/ko-kr/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

sp.processor.start() (mongosh method)

sp.processor.start()

New in version 7.0:

Starts a named Stream Processor on the current Stream Processing Workspace.

This method is supported in Atlas Stream Processing Workspaces.

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

sp.processor.start(
{
<options>
}
)

sp.processor.start() takes a generic, optional <options> document whose fields are passed to the underlying start command. These fields can be:

Field
Type
Necessity
Description

startAfter

token

Conditional

startAtOperationTime

timestamp

Conditional

tier

string

Optional

The tier to which Atlas Stream Processing assigns the processor. If you do not declare this option, Atlas Stream Processing assigns the processor to the Stream Processing Workspace's tier. Must be one of the following:

  • SP2

  • SP5

  • SP10

  • SP30

  • SP50

To learn more, see Tiers.

clearCheckpoints

boolean

Optional

Specifies whether this start request skips checkpoint recovery. When set to true, the processor starts without recovering a checkpoint. By default, this field is false.

resumeFromCheckpoint

boolean

Optional

Specifies if the processor resumes from its most recent checkpoint when it starts. By default, this field is true, and the processor resumes from its most recent checkpoint.

sp.processor.start() starts a named stream processor on the current stream processing workspace. 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.

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

The following example starts a stream processor named solarDemo.

sp.solarDemo.start()