1""" 2This module contains the status enums for use by HostQueueEntrys in the 3database. It is a stand alone module as these status strings are needed 4from various disconnected pieces of code that should not depend on everything 5that frontend.afe.models depends on such as RPC clients. 6""" 7 8from autotest_lib.client.common_lib import enum 9 10Status_list = ['Queued', 'Starting', 'Resetting', 'Verifying', 'Provisioning', 11 'Pending', 'Waiting', 'Running', 'Gathering', 'Parsing', 12 'Archiving', 'Aborted', 'Completed', 'Failed', 'Stopped', 13 'Cleaning', 'Template'] 14 15Status = enum.Enum(*Status_list, string_values=True) 16ACTIVE_STATUSES = (Status.STARTING, Status.RESETTING, Status.VERIFYING, 17 Status.PROVISIONING, Status.PENDING, Status.RUNNING, 18 Status.GATHERING, Status.CLEANING) 19COMPLETE_STATUSES = (Status.ABORTED, Status.COMPLETED, Status.FAILED, 20 Status.STOPPED, Status.TEMPLATE) 21 22IntStatus = enum.Enum(*Status_list) 23