---
title: KeepAlive type | Wartiva GraphQL API
description: Keep-alive configuration for jobs. Multiple conditions are combined with OR logic. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/keep-alive.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `KeepAlive` type

Keep-alive configuration for jobs. Multiple conditions are combined with OR logic.

## Fields

| Field Name | Description |
|---|---|
| `runContinuously` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | If true, keep the job running continuously. |
| `successfulExit` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | If true, restart when the job exits successfully (status 0). If false, restart on non-zero exit status. Implies the job will run at least once to establish an exit status. |
| `networkState` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | If true, keep the job alive while the network is available. If false, keep it alive when the network is unavailable. |
| `pathState` - [`[PathState!]`](https://wartiva.com/api-docs/types/path-state.html) | Keep the job alive based on whether certain paths exist. |
| `otherJobEnabled` - [`[OtherJobEnabled!]`](https://wartiva.com/api-docs/types/other-job-enabled.html) | Keep the job alive based on whether other jobs are enabled or disabled. |

## Used by

- [`SystemServiceMacOS`](https://wartiva.com/api-docs/types/system-service-mac-os.html) type: MacOS-specific attributes for a System Service.

## Example

### Example

```json
{
  "runContinuously": false,
  "successfulExit": false,
  "networkState": false,
  "pathState": [PathState],
  "otherJobEnabled": [OtherJobEnabled]
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
