@airweave/sdk 0.8.85 → 0.8.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +32 -13
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +32 -13
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +32 -13
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +32 -13
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +31 -13
package/dist/cjs/Client.js
CHANGED
|
@@ -48,8 +48,8 @@ class AirweaveSDKClient {
|
|
|
48
48
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
51
|
-
"X-Fern-SDK-Version": "v0.8.
|
|
52
|
-
"User-Agent": "@airweave/sdk/v0.8.
|
|
51
|
+
"X-Fern-SDK-Version": "v0.8.87",
|
|
52
|
+
"User-Agent": "@airweave/sdk/v0.8.87",
|
|
53
53
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
54
54
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
55
55
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -106,12 +106,21 @@ export declare class SourceConnections {
|
|
|
106
106
|
/**
|
|
107
107
|
* Permanently delete a source connection and all its synced data.
|
|
108
108
|
*
|
|
109
|
-
*
|
|
110
|
-
* - Removes all entities synced from this source from the vector database
|
|
111
|
-
* - Cancels any scheduled or running sync jobs
|
|
112
|
-
* - Deletes the connection configuration and credentials
|
|
109
|
+
* **What happens when you delete:**
|
|
113
110
|
*
|
|
114
|
-
*
|
|
111
|
+
* 1. Any running sync is cancelled and the API waits (up to 15 s) for the
|
|
112
|
+
* worker to stop writing.
|
|
113
|
+
* 2. The source connection, sync configuration, job history, and entity
|
|
114
|
+
* metadata are cascade-deleted from the database.
|
|
115
|
+
* 3. A background cleanup workflow is scheduled to remove data from the
|
|
116
|
+
* vector database (Vespa) and raw data storage (ARF). This may take
|
|
117
|
+
* several minutes for large datasets but does **not** block the response.
|
|
118
|
+
*
|
|
119
|
+
* The API returns immediately after step 2. Vector database cleanup happens
|
|
120
|
+
* asynchronously -- the data becomes unsearchable as soon as the database
|
|
121
|
+
* records are deleted.
|
|
122
|
+
*
|
|
123
|
+
* **Warning**: This action cannot be undone.
|
|
115
124
|
*
|
|
116
125
|
* @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
|
|
117
126
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -182,12 +191,14 @@ export declare class SourceConnections {
|
|
|
182
191
|
* includes status, timing information, and entity counts.
|
|
183
192
|
*
|
|
184
193
|
* Job statuses:
|
|
185
|
-
* - **PENDING**: Job is queued
|
|
194
|
+
* - **PENDING**: Job is queued, waiting for the worker to pick it up
|
|
186
195
|
* - **RUNNING**: Sync is actively pulling and processing data
|
|
187
196
|
* - **COMPLETED**: Sync finished successfully
|
|
188
|
-
* - **FAILED**: Sync encountered an error
|
|
189
|
-
* - **
|
|
190
|
-
*
|
|
197
|
+
* - **FAILED**: Sync encountered an unrecoverable error
|
|
198
|
+
* - **CANCELLING**: Cancellation has been requested. The worker is
|
|
199
|
+
* gracefully stopping the pipeline and cleaning up destination data.
|
|
200
|
+
* - **CANCELLED**: Sync was cancelled. The worker has fully stopped
|
|
201
|
+
* and destination data cleanup has been scheduled.
|
|
191
202
|
*
|
|
192
203
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
193
204
|
* @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
|
|
@@ -207,11 +218,19 @@ export declare class SourceConnections {
|
|
|
207
218
|
/**
|
|
208
219
|
* Request cancellation of a running sync job.
|
|
209
220
|
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
221
|
+
* **State lifecycle**: `PENDING` / `RUNNING` → `CANCELLING` → `CANCELLED`
|
|
222
|
+
*
|
|
223
|
+
* 1. The API immediately marks the job as **CANCELLING** in the database.
|
|
224
|
+
* 2. A cancellation signal is sent to the Temporal workflow.
|
|
225
|
+
* 3. The worker receives the signal, gracefully stops the sync pipeline
|
|
226
|
+
* (cancels worker pool, source stream), and marks the job as **CANCELLED**.
|
|
227
|
+
*
|
|
228
|
+
* Already-processed entities are retained in the vector database.
|
|
229
|
+
* If the worker is unresponsive, a background cleanup job will force the
|
|
230
|
+
* transition to CANCELLED after 3 minutes.
|
|
212
231
|
*
|
|
213
|
-
* **Note**:
|
|
214
|
-
*
|
|
232
|
+
* **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
|
|
233
|
+
* Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
|
|
215
234
|
*
|
|
216
235
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
217
236
|
* @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
|
|
@@ -295,12 +295,21 @@ class SourceConnections {
|
|
|
295
295
|
/**
|
|
296
296
|
* Permanently delete a source connection and all its synced data.
|
|
297
297
|
*
|
|
298
|
-
*
|
|
299
|
-
* - Removes all entities synced from this source from the vector database
|
|
300
|
-
* - Cancels any scheduled or running sync jobs
|
|
301
|
-
* - Deletes the connection configuration and credentials
|
|
298
|
+
* **What happens when you delete:**
|
|
302
299
|
*
|
|
303
|
-
*
|
|
300
|
+
* 1. Any running sync is cancelled and the API waits (up to 15 s) for the
|
|
301
|
+
* worker to stop writing.
|
|
302
|
+
* 2. The source connection, sync configuration, job history, and entity
|
|
303
|
+
* metadata are cascade-deleted from the database.
|
|
304
|
+
* 3. A background cleanup workflow is scheduled to remove data from the
|
|
305
|
+
* vector database (Vespa) and raw data storage (ARF). This may take
|
|
306
|
+
* several minutes for large datasets but does **not** block the response.
|
|
307
|
+
*
|
|
308
|
+
* The API returns immediately after step 2. Vector database cleanup happens
|
|
309
|
+
* asynchronously -- the data becomes unsearchable as soon as the database
|
|
310
|
+
* records are deleted.
|
|
311
|
+
*
|
|
312
|
+
* **Warning**: This action cannot be undone.
|
|
304
313
|
*
|
|
305
314
|
* @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
|
|
306
315
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -531,12 +540,14 @@ class SourceConnections {
|
|
|
531
540
|
* includes status, timing information, and entity counts.
|
|
532
541
|
*
|
|
533
542
|
* Job statuses:
|
|
534
|
-
* - **PENDING**: Job is queued
|
|
543
|
+
* - **PENDING**: Job is queued, waiting for the worker to pick it up
|
|
535
544
|
* - **RUNNING**: Sync is actively pulling and processing data
|
|
536
545
|
* - **COMPLETED**: Sync finished successfully
|
|
537
|
-
* - **FAILED**: Sync encountered an error
|
|
538
|
-
* - **
|
|
539
|
-
*
|
|
546
|
+
* - **FAILED**: Sync encountered an unrecoverable error
|
|
547
|
+
* - **CANCELLING**: Cancellation has been requested. The worker is
|
|
548
|
+
* gracefully stopping the pipeline and cleaning up destination data.
|
|
549
|
+
* - **CANCELLED**: Sync was cancelled. The worker has fully stopped
|
|
550
|
+
* and destination data cleanup has been scheduled.
|
|
540
551
|
*
|
|
541
552
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
542
553
|
* @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
|
|
@@ -611,11 +622,19 @@ class SourceConnections {
|
|
|
611
622
|
/**
|
|
612
623
|
* Request cancellation of a running sync job.
|
|
613
624
|
*
|
|
614
|
-
*
|
|
615
|
-
*
|
|
625
|
+
* **State lifecycle**: `PENDING` / `RUNNING` → `CANCELLING` → `CANCELLED`
|
|
626
|
+
*
|
|
627
|
+
* 1. The API immediately marks the job as **CANCELLING** in the database.
|
|
628
|
+
* 2. A cancellation signal is sent to the Temporal workflow.
|
|
629
|
+
* 3. The worker receives the signal, gracefully stops the sync pipeline
|
|
630
|
+
* (cancels worker pool, source stream), and marks the job as **CANCELLED**.
|
|
631
|
+
*
|
|
632
|
+
* Already-processed entities are retained in the vector database.
|
|
633
|
+
* If the worker is unresponsive, a background cleanup job will force the
|
|
634
|
+
* transition to CANCELLED after 3 minutes.
|
|
616
635
|
*
|
|
617
|
-
* **Note**:
|
|
618
|
-
*
|
|
636
|
+
* **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
|
|
637
|
+
* Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
|
|
619
638
|
*
|
|
620
639
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
621
640
|
* @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.8.
|
|
1
|
+
export declare const SDK_VERSION = "v0.8.87";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
|
|
|
12
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
13
|
"X-Fern-Language": "JavaScript",
|
|
14
14
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
15
|
-
"X-Fern-SDK-Version": "v0.8.
|
|
16
|
-
"User-Agent": "@airweave/sdk/v0.8.
|
|
15
|
+
"X-Fern-SDK-Version": "v0.8.87",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.8.87",
|
|
17
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
19
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -106,12 +106,21 @@ export declare class SourceConnections {
|
|
|
106
106
|
/**
|
|
107
107
|
* Permanently delete a source connection and all its synced data.
|
|
108
108
|
*
|
|
109
|
-
*
|
|
110
|
-
* - Removes all entities synced from this source from the vector database
|
|
111
|
-
* - Cancels any scheduled or running sync jobs
|
|
112
|
-
* - Deletes the connection configuration and credentials
|
|
109
|
+
* **What happens when you delete:**
|
|
113
110
|
*
|
|
114
|
-
*
|
|
111
|
+
* 1. Any running sync is cancelled and the API waits (up to 15 s) for the
|
|
112
|
+
* worker to stop writing.
|
|
113
|
+
* 2. The source connection, sync configuration, job history, and entity
|
|
114
|
+
* metadata are cascade-deleted from the database.
|
|
115
|
+
* 3. A background cleanup workflow is scheduled to remove data from the
|
|
116
|
+
* vector database (Vespa) and raw data storage (ARF). This may take
|
|
117
|
+
* several minutes for large datasets but does **not** block the response.
|
|
118
|
+
*
|
|
119
|
+
* The API returns immediately after step 2. Vector database cleanup happens
|
|
120
|
+
* asynchronously -- the data becomes unsearchable as soon as the database
|
|
121
|
+
* records are deleted.
|
|
122
|
+
*
|
|
123
|
+
* **Warning**: This action cannot be undone.
|
|
115
124
|
*
|
|
116
125
|
* @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
|
|
117
126
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -182,12 +191,14 @@ export declare class SourceConnections {
|
|
|
182
191
|
* includes status, timing information, and entity counts.
|
|
183
192
|
*
|
|
184
193
|
* Job statuses:
|
|
185
|
-
* - **PENDING**: Job is queued
|
|
194
|
+
* - **PENDING**: Job is queued, waiting for the worker to pick it up
|
|
186
195
|
* - **RUNNING**: Sync is actively pulling and processing data
|
|
187
196
|
* - **COMPLETED**: Sync finished successfully
|
|
188
|
-
* - **FAILED**: Sync encountered an error
|
|
189
|
-
* - **
|
|
190
|
-
*
|
|
197
|
+
* - **FAILED**: Sync encountered an unrecoverable error
|
|
198
|
+
* - **CANCELLING**: Cancellation has been requested. The worker is
|
|
199
|
+
* gracefully stopping the pipeline and cleaning up destination data.
|
|
200
|
+
* - **CANCELLED**: Sync was cancelled. The worker has fully stopped
|
|
201
|
+
* and destination data cleanup has been scheduled.
|
|
191
202
|
*
|
|
192
203
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
193
204
|
* @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
|
|
@@ -207,11 +218,19 @@ export declare class SourceConnections {
|
|
|
207
218
|
/**
|
|
208
219
|
* Request cancellation of a running sync job.
|
|
209
220
|
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
221
|
+
* **State lifecycle**: `PENDING` / `RUNNING` → `CANCELLING` → `CANCELLED`
|
|
222
|
+
*
|
|
223
|
+
* 1. The API immediately marks the job as **CANCELLING** in the database.
|
|
224
|
+
* 2. A cancellation signal is sent to the Temporal workflow.
|
|
225
|
+
* 3. The worker receives the signal, gracefully stops the sync pipeline
|
|
226
|
+
* (cancels worker pool, source stream), and marks the job as **CANCELLED**.
|
|
227
|
+
*
|
|
228
|
+
* Already-processed entities are retained in the vector database.
|
|
229
|
+
* If the worker is unresponsive, a background cleanup job will force the
|
|
230
|
+
* transition to CANCELLED after 3 minutes.
|
|
212
231
|
*
|
|
213
|
-
* **Note**:
|
|
214
|
-
*
|
|
232
|
+
* **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
|
|
233
|
+
* Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
|
|
215
234
|
*
|
|
216
235
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
217
236
|
* @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
|
|
@@ -259,12 +259,21 @@ export class SourceConnections {
|
|
|
259
259
|
/**
|
|
260
260
|
* Permanently delete a source connection and all its synced data.
|
|
261
261
|
*
|
|
262
|
-
*
|
|
263
|
-
* - Removes all entities synced from this source from the vector database
|
|
264
|
-
* - Cancels any scheduled or running sync jobs
|
|
265
|
-
* - Deletes the connection configuration and credentials
|
|
262
|
+
* **What happens when you delete:**
|
|
266
263
|
*
|
|
267
|
-
*
|
|
264
|
+
* 1. Any running sync is cancelled and the API waits (up to 15 s) for the
|
|
265
|
+
* worker to stop writing.
|
|
266
|
+
* 2. The source connection, sync configuration, job history, and entity
|
|
267
|
+
* metadata are cascade-deleted from the database.
|
|
268
|
+
* 3. A background cleanup workflow is scheduled to remove data from the
|
|
269
|
+
* vector database (Vespa) and raw data storage (ARF). This may take
|
|
270
|
+
* several minutes for large datasets but does **not** block the response.
|
|
271
|
+
*
|
|
272
|
+
* The API returns immediately after step 2. Vector database cleanup happens
|
|
273
|
+
* asynchronously -- the data becomes unsearchable as soon as the database
|
|
274
|
+
* records are deleted.
|
|
275
|
+
*
|
|
276
|
+
* **Warning**: This action cannot be undone.
|
|
268
277
|
*
|
|
269
278
|
* @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
|
|
270
279
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -495,12 +504,14 @@ export class SourceConnections {
|
|
|
495
504
|
* includes status, timing information, and entity counts.
|
|
496
505
|
*
|
|
497
506
|
* Job statuses:
|
|
498
|
-
* - **PENDING**: Job is queued
|
|
507
|
+
* - **PENDING**: Job is queued, waiting for the worker to pick it up
|
|
499
508
|
* - **RUNNING**: Sync is actively pulling and processing data
|
|
500
509
|
* - **COMPLETED**: Sync finished successfully
|
|
501
|
-
* - **FAILED**: Sync encountered an error
|
|
502
|
-
* - **
|
|
503
|
-
*
|
|
510
|
+
* - **FAILED**: Sync encountered an unrecoverable error
|
|
511
|
+
* - **CANCELLING**: Cancellation has been requested. The worker is
|
|
512
|
+
* gracefully stopping the pipeline and cleaning up destination data.
|
|
513
|
+
* - **CANCELLED**: Sync was cancelled. The worker has fully stopped
|
|
514
|
+
* and destination data cleanup has been scheduled.
|
|
504
515
|
*
|
|
505
516
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
506
517
|
* @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
|
|
@@ -575,11 +586,19 @@ export class SourceConnections {
|
|
|
575
586
|
/**
|
|
576
587
|
* Request cancellation of a running sync job.
|
|
577
588
|
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
589
|
+
* **State lifecycle**: `PENDING` / `RUNNING` → `CANCELLING` → `CANCELLED`
|
|
590
|
+
*
|
|
591
|
+
* 1. The API immediately marks the job as **CANCELLING** in the database.
|
|
592
|
+
* 2. A cancellation signal is sent to the Temporal workflow.
|
|
593
|
+
* 3. The worker receives the signal, gracefully stops the sync pipeline
|
|
594
|
+
* (cancels worker pool, source stream), and marks the job as **CANCELLED**.
|
|
595
|
+
*
|
|
596
|
+
* Already-processed entities are retained in the vector database.
|
|
597
|
+
* If the worker is unresponsive, a background cleanup job will force the
|
|
598
|
+
* transition to CANCELLED after 3 minutes.
|
|
580
599
|
*
|
|
581
|
-
* **Note**:
|
|
582
|
-
*
|
|
600
|
+
* **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
|
|
601
|
+
* Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
|
|
583
602
|
*
|
|
584
603
|
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
585
604
|
* @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.8.
|
|
1
|
+
export declare const SDK_VERSION = "v0.8.87";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.8.
|
|
1
|
+
export const SDK_VERSION = "v0.8.87";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -985,13 +985,21 @@ await client.sourceConnections.get("550e8400-e29b-41d4-a716-446655440000");
|
|
|
985
985
|
|
|
986
986
|
Permanently delete a source connection and all its synced data.
|
|
987
987
|
|
|
988
|
-
|
|
988
|
+
**What happens when you delete:**
|
|
989
|
+
|
|
990
|
+
1. Any running sync is cancelled and the API waits (up to 15 s) for the
|
|
991
|
+
worker to stop writing.
|
|
992
|
+
2. The source connection, sync configuration, job history, and entity
|
|
993
|
+
metadata are cascade-deleted from the database.
|
|
994
|
+
3. A background cleanup workflow is scheduled to remove data from the
|
|
995
|
+
vector database (Vespa) and raw data storage (ARF). This may take
|
|
996
|
+
several minutes for large datasets but does **not** block the response.
|
|
989
997
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
998
|
+
The API returns immediately after step 2. Vector database cleanup happens
|
|
999
|
+
asynchronously -- the data becomes unsearchable as soon as the database
|
|
1000
|
+
records are deleted.
|
|
993
1001
|
|
|
994
|
-
**Warning**: This action cannot be undone.
|
|
1002
|
+
**Warning**: This action cannot be undone.
|
|
995
1003
|
|
|
996
1004
|
</dd>
|
|
997
1005
|
</dl>
|
|
@@ -1221,12 +1229,14 @@ includes status, timing information, and entity counts.
|
|
|
1221
1229
|
|
|
1222
1230
|
Job statuses:
|
|
1223
1231
|
|
|
1224
|
-
- **PENDING**: Job is queued
|
|
1232
|
+
- **PENDING**: Job is queued, waiting for the worker to pick it up
|
|
1225
1233
|
- **RUNNING**: Sync is actively pulling and processing data
|
|
1226
1234
|
- **COMPLETED**: Sync finished successfully
|
|
1227
|
-
- **FAILED**: Sync encountered an error
|
|
1228
|
-
- **
|
|
1229
|
-
|
|
1235
|
+
- **FAILED**: Sync encountered an unrecoverable error
|
|
1236
|
+
- **CANCELLING**: Cancellation has been requested. The worker is
|
|
1237
|
+
gracefully stopping the pipeline and cleaning up destination data.
|
|
1238
|
+
- **CANCELLED**: Sync was cancelled. The worker has fully stopped
|
|
1239
|
+
and destination data cleanup has been scheduled.
|
|
1230
1240
|
</dd>
|
|
1231
1241
|
</dl>
|
|
1232
1242
|
</dd>
|
|
@@ -1300,11 +1310,19 @@ await client.sourceConnections.getSourceConnectionJobs("550e8400-e29b-41d4-a716-
|
|
|
1300
1310
|
|
|
1301
1311
|
Request cancellation of a running sync job.
|
|
1302
1312
|
|
|
1303
|
-
|
|
1304
|
-
|
|
1313
|
+
**State lifecycle**: `PENDING` / `RUNNING` → `CANCELLING` → `CANCELLED`
|
|
1314
|
+
|
|
1315
|
+
1. The API immediately marks the job as **CANCELLING** in the database.
|
|
1316
|
+
2. A cancellation signal is sent to the Temporal workflow.
|
|
1317
|
+
3. The worker receives the signal, gracefully stops the sync pipeline
|
|
1318
|
+
(cancels worker pool, source stream), and marks the job as **CANCELLED**.
|
|
1319
|
+
|
|
1320
|
+
Already-processed entities are retained in the vector database.
|
|
1321
|
+
If the worker is unresponsive, a background cleanup job will force the
|
|
1322
|
+
transition to CANCELLED after 3 minutes.
|
|
1305
1323
|
|
|
1306
|
-
**Note**:
|
|
1307
|
-
|
|
1324
|
+
**Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
|
|
1325
|
+
Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
|
|
1308
1326
|
|
|
1309
1327
|
</dd>
|
|
1310
1328
|
</dl>
|