---
title: WorkflowStatus (latest version)
description: API reference for qiskit.passmanager.WorkflowStatus in the latest version of qiskit
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit/qiskit.passmanager.WorkflowStatus
---

# WorkflowStatus

*class* `qiskit.passmanager.WorkflowStatus(count=0, completed_passes=<factory>, previous_run=RunState.FAIL)`

[GitHub](https://github.com/Qiskit/qiskit/tree/stable/2.5/qiskit/passmanager/compilation_status.py#L35-L52)

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

Collection of compilation status of workflow, i.e. pass manager run.

This data structure is initialized when the pass manager is run, and recursively handed over to underlying tasks. Each pass will update this status once after being executed, and the lifetime of the workflow status object is the time during which the pass manager is running.

## Attributes

**Parameters**

- **count** ([*int*](https://docs.python.org/3/library/functions.html#int))
- **completed\_passes** ([*set*](https://docs.python.org/3/library/stdtypes.html#set))
- **previous\_run** (*RunState*)

### count

Type: `int`

Default value: `0`

Current number of pass execution.

### previous\_run

Type: `RunState`

Default value: `1`

Status of the latest pass run.

### completed\_passes

Type: `set`

Passes already run that have not been invalidated.
