Revision 34327f51 lib/constants.py

b/lib/constants.py
453 453
JOB_STATUS_SUCCESS = "success"
454 454
JOB_STATUS_ERROR = "error"
455 455

  
456
# OpCode status
457
# not yet finalized
456 458
OP_STATUS_QUEUED = "queued"
457 459
OP_STATUS_WAITLOCK = "waiting"
458 460
OP_STATUS_CANCELING = "canceling"
459 461
OP_STATUS_RUNNING = "running"
462
# finalized
460 463
OP_STATUS_CANCELED = "canceled"
461 464
OP_STATUS_SUCCESS = "success"
462 465
OP_STATUS_ERROR = "error"
466
OPS_FINALIZED = frozenset([OP_STATUS_CANCELED,
467
                           OP_STATUS_SUCCESS,
468
                           OP_STATUS_ERROR])
463 469

  
464 470
# Execution log types
465 471
ELOG_MESSAGE = "message"

Also available in: Unified diff