# olef work

Source: https://olef.dev/docs/reference/cli/work

Generated from **Olef 3.18.0**. [All olef commands](https://olef.dev/docs/reference/commands) · [ocloud commands](https://olef.dev/docs/reference/ocloud) · [Capabilities](https://olef.dev/docs/reference/capabilities)

These entries describe available commands, not a sequence to run. Check prerequisites before changing app, device, or cloud state. Global options are listed in the [command catalog](https://olef.dev/docs/reference/commands#global-options).

## olef work

Inspect, run, and cancel AndroidX WorkManager jobs and JobScheduler correlations

```bash
olef work --help
```

Output: **json**.

### olef work list

List WorkManager tasks, decoded inputs/outputs, tags, dependencies, and OS JobScheduler correlation

```bash
olef work list --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `--app <APP>` | App package or configured app alias |
| `--state <STATE>` | Filter by WorkInfo state Values: `enqueued`, `running`, `succeeded`, `failed`, `blocked`, `cancelled`. |
| `--tag <TAG>` | Filter by WorkManager tag |
| `--live` | Query live WorkManager via the attached runtime agent |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef work show

Show detailed WorkManager record + JobScheduler correlation for one work UUID

```bash
olef work show --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<work_id>` | **Required.** WorkManager UUID |
| `--app <APP>` | App package or configured app alias |
| `--live` | Query live WorkManager via the attached runtime agent |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef work run

Trigger an enqueued WorkManager job immediately via JobScheduler and verify execution vs deferral

```bash
olef work run --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<work_id>` | **Required.** WorkManager UUID |
| `--app <APP>` | App package or configured app alias |
| `--wait-ms <WAIT_MS>` | Poll duration for state/run-attempt transition in milliseconds Default: `5000`. |
| `--json` | Accepted for compatibility; output is always JSON. |

### olef work cancel

Cancel a WorkManager task (and verify downstream dependent cancellation) via live runtime

```bash
olef work cancel --help
```

Output: **json**.

| Argument | Description |
| --- | --- |
| `<work_id>` | **Required.** WorkManager UUID |
| `--app <APP>` | App package or configured app alias |
| `--json` | Accepted for compatibility; output is always JSON. |
