<#C01AHCD885S|> a sync is running or pending and s...
# ask-ai
a
#C01AHCD885S a sync is running or pending and sync job history is 'Status Unknown'. How to cancel the sync?
u
To cancel a running or pending sync in Airbyte, you can use the following methods: 1. Using the Airbyte UI: Normally, you should be able to cancel a sync from the Airbyte web interface. However, if the sync status is unknown, this option might not be available. 2. Using the Airbyte API: You can cancel a running job using the Airbyte API. Here's how: Send a DELETE request to the following endpoint:
Copy code
DELETE /jobs/{jobId}
This will cancel the running job [Airbyte Public API - Jobs](https://reference.airbyte.com/reference/start). 3. If the above methods don't work, you might need to restart the Airbyte services: As mentioned in a forum post, sometimes when syncs get stuck, restarting Airbyte services can help. You can try running
docker-compose restart
if you're using a Docker deployment [All Airbyte Syncs stopped for several days](https://discuss.airbyte.io/t/1018). 4. If you're using an orchestration tool like Dagster, Airflow, or Prefect, you might be able to cancel the sync through that tool [Forum Post: Cancel Sync event](https://discuss.airbyte.io/t/3334). If none of these methods work, you may need to investigate further by checking the Airbyte logs for any error messages or unusual behavior. If the problem persists, consider reaching out to Airbyte support for assistance.