> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wisdom.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# JobHistory

This page describes the schema for Job History.

## JobHistory

**lastRun** `JobRun`

Information about the most recent job execution attempt. See [JobRun](#jobrun).

**lastSuccessfulRun** `JobRun`

Information about the most recent successful job execution. See [JobRun](#jobrun).

## JobRun

**jobRunId** `String!` *required*

Unique identifier for this specific job execution.

**jobId** `String!` *required*

Identifier for the job definition that was executed.

**jobType** `String!` *required*

The type of job that was executed (e.g., `CRAWL_METADATA` for connection refresh operations).

**userId** `String!` *required*

Identifier of the user who initiated the job execution.

**user** `User`

The user who initiated the job execution. Resolved from `userId`, and null when that user can't be found. See [User](https://docs.wisdom.ai/integrations/graphql-api/objects/user.md).

**status** `JobRunStatus!` *required*

The current status of the job execution. See [JobRunStatus](#jobrunstatus).

**startedAt** `String`

ISO 8601 timestamp when the job execution started.

**endedAt** `String`

ISO 8601 timestamp when the job execution completed (successfully or with failure).

**summary** `String`

Human-readable summary of the job execution result.

**conciseErrorMessage** `String`

Brief error message if the job failed, null if successful.

**createdAt** `String!` *required*

ISO 8601 timestamp when the job execution record was created.

## JobRunStatus

The status of a job execution. This parameter can have one of the following values:

| Status | Description |
| :- | :- |
| `JOB_RUN_STATUS_UNKNOWN` | Status is unknown or not set |
| `JOB_RUN_STATUS_QUEUED` | Job is queued and waiting to be executed |
| `JOB_RUN_STATUS_RUNNING` | Job is currently executing |
| `JOB_RUN_STATUS_SUCCESS` | Job completed successfully |
| `JOB_RUN_STATUS_FAILED` | Job failed with errors |
| `JOB_RUN_STATUS_SKIPPED` | Job was skipped |
| `JOB_RUN_STATUS_CANCELED` | Job was canceled |

## Related operations

> [card] [Connection Queries](https://docs.wisdom.ai/integrations/graphql-api/queries/connection/connection.md)
>
> Query connection status and metadata

> [card] [Refresh Connection](https://docs.wisdom.ai/integrations/graphql-api/mutations/connection/refresh-connection.md)
>
> Trigger connection metadata refresh


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.