You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`delete_on_create_timeout` (Boolean) Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to `true` and timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set to `false`, the timeout will not trigger resource deletion. If you suspect a transient error when the value is `true`, wait before retrying to allow resource deletion to finish. Default is `true`.
135
136
-`options` (Attributes) Optional configuration for the stream processor. (see [below for nested schema](#nestedatt--options))
136
137
-`state` (String) The state of the stream processor. Commonly occurring states are 'CREATED', 'STARTED', 'STOPPED' and 'FAILED'. Used to start or stop the Stream Processor. Valid values are `CREATED`, `STARTED` or `STOPPED`. When a Stream Processor is created without specifying the state, it will default to `CREATED` state. When a Stream Processor is updated without specifying the state, it will default to the Previous state.
137
138
138
139
**NOTE** When a Stream Processor is updated without specifying the state, it is stopped and then restored to previous state upon update completion.
140
+
-`timeouts` (Attributes) (see [below for nested schema](#nestedatt--timeouts))
139
141
140
142
### Read-Only
141
143
@@ -158,6 +160,15 @@ Required:
158
160
-`connection_name` (String) Name of the connection to write DLQ messages to. Must be an Atlas connection.
159
161
-`db` (String) Name of the database to use for the DLQ.
160
162
163
+
164
+
165
+
<aid="nestedatt--timeouts"></a>
166
+
### Nested Schema for `timeouts`
167
+
168
+
Optional:
169
+
170
+
-`create` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
171
+
161
172
## Import
162
173
Stream Processor resource can be imported using the Project ID, Stream Instance name and Stream Processor name, in the format `INSTANCE_NAME-PROJECT_ID-PROCESSOR_NAME`, e.g.
MarkdownDescription: "The stats associated with the stream processor. Refer to the [MongoDB Atlas Docs](https://www.mongodb.com/docs/atlas/atlas-stream-processing/manage-stream-processor/#view-statistics-of-a-stream-processor) for more information.",
MarkdownDescription: "Indicates whether to delete the resource being created if a timeout is reached when waiting for completion. When set to `true` and timeout occurs, it triggers the deletion and returns immediately without waiting for deletion to complete. When set to `false`, the timeout will not trigger resource deletion. If you suspect a transient error when the value is `true`, wait before retrying to allow resource deletion to finish. Default is `true`.",
Copy file name to clipboardExpand all lines: internal/service/streamprocessor/state_transition.go
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,21 @@ const (
24
24
const (
25
25
ErrorUpdateStateTransition="Stream Processor must be in %s state to transition to %s state"
26
26
ErrorUpdateToCreatedState="Stream Processor cannot transition from %s to CREATED"
27
+
defaultTimeout=5*time.Minute// big pipelines can take a while to stop due to checkpointing. By default, we prefer the API to raise the error (~ 3min) than having to expose custom timeouts.
Timeout: 5*time.Minute, // big pipelines can take a while to stop due to checkpointing. We prefer the API to raise the error (~ 3min) than having to expose custom timeouts.
0 commit comments