'available_actions() -> Zero or more of [ \'start\', \'suspend\', \'resume\', \'kill\' ]'

def available_actions(self):

    if (self.status in ('SUCCEEDED', 'KILLED', 'FAILED')):
        return []
    res = []
    if (self.status == 'PREP'):
        res.append('start')
    if (self.status == 'RUNNING'):
        res.append('suspend')
    if (self.status == 'SUSPENDED'):
        res.append('resume')
    res.append('kill')
    return res
