Query
query ImageConversionJob($id: UUID!) {
imageConversionJob(id: $id) {
error
id
position
queuedAt
result {
contentType
expiresAt
filename
size
url
}
status
}
}Variables
{
"id": "value"
}Response
{
"data": {
"imageConversionJob": {
"error": "string",
"id": "value",
"position": 1,
"queuedAt": "value",
"result": {
"contentType": "string",
"expiresAt": "value",
"filename": "string",
"size": "value",
"url": "string"
},
"status": "QUEUED"
}
}
}Queries
imageConversionJob
Gets a job of one of the tenant’s image conversions, as convertImage returned it. Once the job is completed, result holds a signed link to the converted image.
QUERY
imageConversionJob(id: UUID!): ConversionJob!Arguments
id
UUID!
required
Raw id of the job (ConversionJob.id, a UUID).
Returns
error
String
Why the conversion failed, once the job has failed.
id
UUID!
The job's id.
position
Int
About how many queued jobs are ahead of this one. 0 means it's next, and 1000 means 1000 or more. It's an estimate: null when the job isn't queued, and sometimes null while it is.
queuedAt
When the job joined the queue. If an attempt failed and will be retried, it's when the job rejoins the queue, about a minute after the failure.
result
The converted image, once the job is completed.
status
The job's current status.
Query
query ImageConversionJob($id: UUID!) {
imageConversionJob(id: $id) {
error
id
position
queuedAt
result {
contentType
expiresAt
filename
size
url
}
status
}
}Variables
{
"id": "value"
}Response
{
"data": {
"imageConversionJob": {
"error": "string",
"id": "value",
"position": 1,
"queuedAt": "value",
"result": {
"contentType": "string",
"expiresAt": "value",
"filename": "string",
"size": "value",
"url": "string"
},
"status": "QUEUED"
}
}
}Was this page helpful?