### Jobs Expiration

Completed jobs are retained for 7 days.

Job status can be one of the following:

- `available` \- This is the initial status prior to attempting any processing
- `processing` \- This is the next state once processing has started for a job that was in the `available` state.
- `completed` \- This is the next state after `processing` if the job is processed successfully.
- `failed` \- This is the alternate next state after `processing` if the job fails to process.

#### job_id

int32

required

The ID of the job to return information about

```plaintext
# ``200      200

completedfailed

CompletedTime
string

TaskId
string

NetworkId
integer

Defaults to 0

Status
string

TaskArgs
object

ProductUris
array of strings

AdTemplateUri
string

FlightId
integer

Defaults to 0

AvailableTime
string

Output
object

AdIds
array of integers

Id
integer

Defaults to 0

PartitionId
string
```

#### Example Response

```json
{
  "CompletedTime": "2023-02-28T22:04:46.968222",
  "TaskId": "create-ads-from-products",
  "NetworkId": 11245,
  "Status": "completed",
  "TaskArgs": {
    "ProductUris": [
      "itemdb://11245/100/0193642296013-skechers-13054-n-kengat-valk-40-0193642296013"
    ],
    "AdTemplateUri": "itemdb://11245/101/0e9321b3-1446-47ec-b1d7-705bfb7b3fb5",
    "FlightId": 332150093
  },
  "AvailableTime": "2023-02-28T22:04:45.893803",
  "Output": {
    "AdIds": [
      342014259
    ]
  },
  "Id": 4757,
  "PartitionId": null
}
```

Updated 10 months ago
