Stop a running datasource sync job
PUT/datasources/:datasource_id/sync-jobs/:job_id
Stops an in-flight catalog Glue sync job. Caller needs editor access (else AUTH-1012). Supported types: amorphic, or jdbc with IngestionType metadataonly. Job must be RUNNING or STARTING in DynamoDB (else IPV-1078). If Glue is still RUNNING, stop is requested and JobStatus becomes STOPPING; if Glue already terminal, DynamoDB is synced to that status. Intended for catalog Glue runs (GlueJobRunId "n/a" on the external path can fail with GE-1034). Not idempotent for an already-stopped job.
Request
Responses
- 200
- 400
- 500
Stop accepted or status synced. Message is either "Triggered stop of datasource sync job {job_id}" (STOPPING) or "Sync job {job_id} already reached status {state} before it could be stopped."
Response Headers
Validation or authorization failure. Body is {"Message": " -
Response Headers
Backend failure (GE-1034 if Glue get/stop fails), or unsupported datasource type Message "Only Amorphic and Jdbc metadataonly type of datasources are allowed for this /sync-jobs/JobId operation".