You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/workflow/jobs.mdx
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,12 @@ To use the [Unstructured Workflow Endpoint](/api-reference/workflow/overview) to
6
6
7
7
- To get a list of available jobs, use the `UnstructuredClient` object's `jobs.list_jobs` function (for the Python SDK) or
8
8
the `GET` method to call the `/jobs` endpoint (for `curl` or Postman). [Learn more](/api-reference/workflow/overview#list-jobs).
9
-
- To get information about a job, use the `UnstructuredClient` object's `jobs.get_job` function (for the Python SDK) or
9
+
- To get basic information about a job, use the `UnstructuredClient` object's `jobs.get_job` function (for the Python SDK) or
10
10
the `GET` method to call the `/jobs/<job-id>` endpoint (for `curl` or Postman). [Learn more](/api-reference/workflow/overview#get-a-job).
11
+
- To get information about a job's current processing status, use the `UnstructuredClient` object's `jobs.get_job_details` function (for the Python SDK) or
12
+
the `GET` method to call the `/jobs/<job-id>/details` endpoint (for `curl` or Postman). [Learn more](/api-reference/workflow/overview#get-processing-details-for-a-job).
13
+
- To get the list of any failed files for a job and why those files failed, use the `UnstructuredClient` object's `jobs.get_failed_files` function (for the Python SDK) or
14
+
the `GET` method to call the `/jobs/<job-id>/failed-files` endpoint (for `curl` or Postman). [Learn more](/api-reference/workflow/overview#get-failed-file-details-for-a-job).
11
15
- A job is created automatically whenever a workflow runs on a schedule; see [Create a workflow](/api-reference/workflow/workflows#create-a-workflow).
12
16
A job is also created whenever you run a workflow manually; see [Run a workflow](/api-reference/workflow/overview#run-a-workflow).
13
17
- To cancel a running job, use the `UnstructuredClient` object's `jobs.cancel_job` function (for the Python SDK) or
To get the list of any failed files for a job and why those files failed, use the `UnstructuredClient` object's `jobs.get_job_failed_files` function (for the Python SDK) or
2563
+
the `GET` method to call the `/jobs/<job-id>/failed-files` endpoint (for `curl` or Postman), replacing
2564
+
`<job-id>` with the job's unique ID. To get this ID, see [List jobs](#list-jobs).
2565
+
2566
+
<AccordionGroup>
2567
+
<Accordiontitle="Python SDK">
2568
+
```python
2569
+
import os
2570
+
2571
+
from unstructured_client import UnstructuredClient
2572
+
from unstructured_client.models.operations import GetJobFailedFilesRequest
0 commit comments