Skip to content

Commit c2f7405

Browse files
committed
add abort example to README
1 parent 8dc0684 commit c2f7405

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,17 @@ result = j1.upload_combined_batch_json(
531531
print(f"Uploaded {len(combined_payload['entities'])} entities and {len(combined_payload['relationships'])} relationships")
532532
```
533533

534+
##### Abort Synchronization Job
535+
```python
536+
# Abort the sync job
537+
result = j1.abort_sync_job(instance_job_id='<id-of-integration-sync-job>')
538+
print(f"Abort sync job: {result['status'].get('id')}")
539+
540+
# Check job status
541+
if result['job']['status'] == 'ABORTED':
542+
print("Sync job Abort successfully")
543+
```
544+
534545
##### Finalize Synchronization Job
535546

536547
```python

0 commit comments

Comments
 (0)