2 This module contains the status enums for use by HostQueueEntrys in the
3 database. It is a stand alone module as these status strings are needed
4 from various disconnected pieces of code that should not depend on everything
5 that frontend.afe.models depends on such as RPC clients.
8 from autotest_lib
.client
.common_lib
import enum
10 Status
= enum
.Enum('Queued', 'Starting', 'Verifying', 'Pending', 'Waiting',
11 'Running', 'Gathering', 'Parsing', 'Archiving', 'Aborted',
12 'Completed', 'Failed', 'Stopped', 'Template',
14 ACTIVE_STATUSES
= (Status
.STARTING
, Status
.VERIFYING
, Status
.PENDING
,
15 Status
.RUNNING
, Status
.GATHERING
)
16 COMPLETE_STATUSES
= (Status
.ABORTED
, Status
.COMPLETED
, Status
.FAILED
,
17 Status
.STOPPED
, Status
.TEMPLATE
)