import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.task_status.abort( "tracker_id",)print(response)
{ "detail": "<string>"}
Task Tracking
Abort Progress Tracker
Abort a progress tracker and update the tracker in Postgres.
PUT
/
progress_tracker
/
abort
/
{tracker_id}
Python
import osfrom unstructured import UnstructuredClientclient = UnstructuredClient( username=os.environ.get("UNSTRUCTURED_USERNAME"), # This is the default and can be omitted password=os.environ.get("UNSTRUCTURED_PASSWORD"), # This is the default and can be omitted)response = client.task_status.abort( "tracker_id",)print(response)