Sree Shanthan Kuthuru
07/04/2025, 5:40 PM>> res = requests.delete(cancel_job_url, headers=header)
>> print(res.json()){'status': 409, 'type': 'https://reference.airbyte.com/reference/errors#409-state-conflict', 'title': 'state-conflict', 'detail': 'State conflict', 'documentationUrl': None, 'data': {'message': 'Job is not currently running'}}
kapa.ai
07/04/2025, 5:40 PM{'status': 409, 'type': 'https://reference.airbyte.com/reference/errors#409-state-conflict', 'title': 'state-conflict', 'detail': 'State conflict', 'documentationUrl': None, 'data': {'message': 'Job is not currently running'}} means that the Airbyte job you are trying to cancel is not in a "running" state. The Airbyte API only allows cancellation of jobs that are currently running. If a job has already completed, failed, or is in any other state, attempting to cancel it will result in a 409 state conflict error, as you observed. This behavior is consistent with the Airbyte API specification, which states that the cancel job endpoint (DELETE /jobs/{jobId}) is used to cancel a running job. If the job is not running, cancellation is not possible and a conflict error is returned<sup>[Airbyte Public API - Jobs > Methods](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml)</sup>. What you can do: - Before attempting to cancel a job, check its current status. Only jobs with a status of "running" can be cancelled. - If you are seeing jobs stuck in a non-running state (e.g., "pending" or "incomplete"), you may need to investigate further why they are not progressing or being marked as running. If you need to programmatically check the job status before cancelling, you can use the Airbyte API to fetch the job details and inspect the status field. If you have further issues with jobs hanging or not transitioning to the "running" state, there may be underlying issues with your Airbyte deployment or resource availability. In such cases, reviewing the Airbyte logs and system health is recommended.Sree Shanthan Kuthuru
07/04/2025, 5:41 PMkapa.ai
07/04/2025, 5:41 PMkapa.ai
07/04/2025, 5:41 PMSree Shanthan Kuthuru
07/04/2025, 5:43 PMkapa.ai
07/04/2025, 5:43 PMkapa.ai
07/04/2025, 5:43 PMairbyte namespace: bash kubectl delete pods --all -n airbyte Or, to restart a specific pod (replace <pod-name> with the actual pod name): bash kubectl delete pod <pod-name> -n airbyte This approach has been suggested in community discussions when jobs or the UI become unresponsive. Deleting failed or stuck jobs and restarting pods can help restore Airbyte to a working state if there are no deeper infrastructure issues. However, if the problem persists after restarting, you may need to investigate logs for further troubleshooting<sup>[Sync Stuck in Running / K8s](https://discuss.airbyte.io/t/680)</sup>. ### For Docker Compose Deployments You can restart all Airbyte services with: bash docker-compose restart Or, to stop everything and start fresh (note: this does not delete your data): bash docker-compose down docker-compose up -d This method has been reported to resolve issues where all syncs are stuck in "pending" or "running" states<sup>[All Airbyte Syncs stopped for several days](https://discuss.airbyte.io/t/1018)</sup>. --- Note: Restarting pods or services will interrupt any running jobs, but it is a common first step to recover from stuck or unresponsive states in Airbyte. If you continue to experience issues, further investigation into logs and resource allocation is recommended.