#NEWLINE# @ staticmethod #NEWLINE# def is_task_in_aborting_status( task_uuid , check_soft = True ) : #NEWLINE# #INDENT# 'Checks task is in abort stages\n\n        :param task_uuid: UUID of task to check status\n        :type task_uuid: str\n        :param check_soft: check or not SOFT_ABORTING status\n        :type check_soft: bool\n        ' #NEWLINE# stages = [ consts . TaskStatus . ABORTING , consts . TaskStatus . ABORTED ] #NEWLINE# if check_soft : #NEWLINE# #INDENT# stages . append ( consts . TaskStatus . SOFT_ABORTING ) #NEWLINE# #UNINDENT# return ( objects . Task . get_status ( task_uuid ) in stages )