<s> NODE_STATUS = ( NODE_BLOCKED , <EOL> NODE_READY , <EOL> NODE_RUNNING , <EOL> NODE_DONE , <EOL> NODE_ERROR , <EOL> NODE_CANCELED , <EOL> NODE_PAUSED ) = range ( <NUM_LIT:7> ) <EOL> NODE_STATUS_NAMES = ( "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ) <EOL> NODE_STATUS_SHORT_NAMES = ( "<STR_LIT:B>" , "<STR_LIT:I>" , "<STR_LIT:R>" , "<STR_LIT:D>" , "<STR_LIT:E>" , "<STR_LIT:C>" , "<STR_LIT:P>" ) <EOL> def isFinalNodeStatus ( status ) : <EOL> return status in [ NODE_DONE , NODE_ERROR , NODE_CANCELED ] </s>
