Skip to main content

storefrontPageGenerationJob

Requires permission storefront:storefront:update.

Poll a page-generation job. Jobs expire an hour after their last update. A job whose server stopped before it finished reads FAILED (CANCELLED if a cancel was asked for) about a minute after its last update.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query StorefrontPageGenerationJob($jobId: ID!) {
storefrontPageGenerationJob(jobId: $jobId) {
status
costDisplay
creditsUsedCents
error
jobId
page
}
}

Variables:

{
"jobId": "id"
}

Response:

{
"data": {
"storefrontPageGenerationJob": {
"status": "CANCELLED",
"costDisplay": "string",
"creditsUsedCents": 0,
"error": "string",
"jobId": "id",
"page": {}
}
}
}
storefrontPageGenerationJob(
jobId: ID!
): StorefrontPageJob!

Arguments​

storefrontPageGenerationJob.jobId ● ID! non-null scalar​

The ID of the page generation job.

Type​

StorefrontPageJob object​

A started storefront page generation.