- getGraphQlBulkJobStatus - Get the status of a previously submitted GraphQL bulk job
- getJobStatus - Get the status of a previously submitted job
Use this operation to get a previously submitted GraphQL bulk job's status and completion percentage. Once a job is complete, this operation will return the URL from which to download the job results.
package hello.world;
import com.thetradedesk.workflows.Workflows;
import com.thetradedesk.workflows.models.errors.ProblemDetailsException;
import com.thetradedesk.workflows.models.operations.GetGraphQlBulkJobStatusResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ProblemDetailsException, Exception {
Workflows sdk = Workflows.builder()
.ttdAuth(System.getenv().getOrDefault("WORKFLOWS_TTD_AUTH", ""))
.build();
GetGraphQlBulkJobStatusResponse res = sdk.jobStatus().getGraphQlBulkJobStatus()
.id("<id>")
.call();
if (res.graphQLBulkJobRetrievalResponse().isPresent()) {
System.out.println(res.graphQLBulkJobRetrievalResponse().get());
}
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
id |
String | ✔️ | N/A |
GetGraphQlBulkJobStatusResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/ProblemDetailsException | 400, 401, 403, 404 | application/json |
| models/errors/APIException | 4XX, 5XX | */* |
Use this operation to get a previously submitted job's status and completion percentage. Once a job is complete, this operation will return the URL from which to download the job results.
Job results expire after 24 hours, at which point you will need to submit a new job.
package hello.world;
import com.thetradedesk.workflows.Workflows;
import com.thetradedesk.workflows.models.errors.ProblemDetailsException;
import com.thetradedesk.workflows.models.operations.GetJobStatusResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ProblemDetailsException, Exception {
Workflows sdk = Workflows.builder()
.ttdAuth(System.getenv().getOrDefault("WORKFLOWS_TTD_AUTH", ""))
.build();
GetJobStatusResponse res = sdk.jobStatus().getJobStatus()
.id(412651L)
.call();
if (res.standardJobStatusResponse().isPresent()) {
System.out.println(res.standardJobStatusResponse().get());
}
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
id |
long | ✔️ | N/A |
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/ProblemDetailsException | 400, 401, 403, 404 | application/json |
| models/errors/APIException | 4XX, 5XX | */* |