The Job Management API allows for the management and execution of asynchronous jobs within CDQ services. This API enables the creation, monitoring, and management of jobs, allowing developers to automate and streamline complex workflows and tasks.
Jobs Management API (2)
https://idp.cdq.com/_mock/apis/jobs-management-api/api-v2/
https://job-management-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/soap/v2/
https://job-management-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/
- Mock server
https://idp.cdq.com/_mock/apis/jobs-management-api/api-v2/jobs/{jobId}/resultdata
- Production SOAP
https://job-management-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/soap/v2/jobs/{jobId}/resultdata
- Production
https://job-management-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/jobs/{jobId}/resultdata
curl -i -X PUT \
https://idp.cdq.com/_mock/apis/jobs-management-api/api-v2/jobs/35f23c03-1c22-45fe-9484-3ffe769325de/resultdata \
-H 'Content-Type: application/json' \
-d '{
"resultData": "{'\''param1'\'': '\''value1'\''}"
}'OK
Date of modification (ISO 8601-compliant).
Job execution status.
| Enum Value | Description |
|---|---|
| UNKNOWN | Job becomes in unknown status. |
| CREATED | Job has been created. |
| PERSISTED | Job metadata has been persisted. |
| SCHEDULED | Job has been scheduled for execution. |
| WAITING | Job is waiting for being scheduled. |
| RUNNING | Job is being executed. |
| FINISHED | Job has finished. |
| DIED | Job was scheduled and started running but died unexpectedly. |
| CANCELED | Job has been canceled due to invalid input configuration. |
| FAILED | Job has failed. |
Additional information to explain the status.
Job execution status.
| Enum Value | Description |
|---|---|
| UNKNOWN | Job becomes in unknown status. |
| CREATED | Job has been created. |
| PERSISTED | Job metadata has been persisted. |
| SCHEDULED | Job has been scheduled for execution. |
| WAITING | Job is waiting for being scheduled. |
| RUNNING | Job is being executed. |
| FINISHED | Job has finished. |
| DIED | Job was scheduled and started running but died unexpectedly. |
| CANCELED | Job has been canceled due to invalid input configuration. |
| FAILED | Job has failed. |
Unique identifier of the Storage.
Detailed description of a Job.
Uniquely identifying ID of the organization.
Uniquely identifying ID of the workspace.
{ "commands": [ "command" ], "startedAt": "2019-09-07T00:00:00Z", "createdAt": "2020-08-31T16:47+00:00", "modifiedAt": "2020-08-31T16:47+00:00", "finishedAt": "2019-09-07T00:00:00Z", "expiresAt": "2019-09-07T00:00:00Z", "dockerImageUrl": "data-curation", "domain": "cdqag/data-curation-job", "environmentVariables": [ { … } ], "id": "35f23c03-1c22-45fe-9484-3ffe769325de", "inputUri": "input-uri", "jobDependencies": [ { … } ], "jobStatus": "RUNNING", "message": "The job failed because storage is empty.", "mainLabel": "My job.", "labels": [ { … } ], "tags": [ "tag" ], "lastJobStatus": "RUNNING", "progress": "50", "totalItems": "100", "processedItems": "50", "failedItems": "10", "reportUri": "https://link-to-my-report", "resourceRequest": { "memoryLimit": 1024, "memoryRequest": 1024, "cpuLimit": 0.2, "cpuRequest": 0.1, "xmxLimit": 512 }, "user": "742429-234242-4343-232323", "storageId": "72d6900fce6b326088f5d9d91049e3e6", "attachments": [ { … } ], "resultData": "{'param1': 'value1'}", "metrics": [ { … } ], "locks": [ { … } ], "type": "DATA_CURATION_JOB", "volumes": [ { … } ], "name": "Process vendor data.", "description": "I started this job to improve quality of our data.", "organizationId": "cdq_monitor", "workspaceId": "c074b9f3-abf0-4f8e-9a20-74deb6cfa2a4" }
- Mock server
https://idp.cdq.com/_mock/apis/jobs-management-api/api-v2/jobs/results/fetchLast
- Production SOAP
https://job-management-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/soap/v2/jobs/results/fetchLast
- Production
https://job-management-api.reverse-proxy.prod.k8s.production.cdq-cloud-engine.com/jobs/results/fetchLast
curl -i -X POST \
https://idp.cdq.com/_mock/apis/jobs-management-api/api-v2/jobs/results/fetchLast \
-H 'Content-Type: application/json' \
-d '{
"jobType": "DATA_CURATION_JOB",
"storageId": "72d6900fce6b326088f5d9d91049e3e6"
}'OK
Unique identifier for a Data Source of the Storage.
A CDQ ID identifies a business partner uniquely in the context of the Corporate Data League.
Arbitrary identifier type to mark customer IDs that are "external" from CDQ's perspective. This is the identifier a customer provides to identify its records.
ID the address has in the external system where the record originates from.
CDQ supports multiple versions of addresses comprising different charsets and languages. An address version is a unique combination of a character set and a language.
Stringified JSON representation of the job result created for the record identified by the businessPartnerId and the external ID.
Additional explanations for status - especially for the FAILED case.
{ "id": "5daef6fe65bafb00012901e6", "jobId": "35f23c03-1c22-45fe-9484-3ffe769325de", "dataSourceId": "648824a691d8d2503d65103e", "businessPartnerId": "63e635235c06b7396330fe40", "addressId": "address-id", "externalId": "The ID managed in the customer's SAP systems.", "addressExternalId": "1", "addressVersion": { "characterSet": { … }, "language": { … } }, "jobType": "DATA_CURATION_JOB", "resultData": "{'param1': 'value1'}", "status": "OK", "message": "Missing storageId.", "countryShortName": "CH", "executedAt": "2019-09-07T00:00:00Z" }