(self, task_dir)
Return task_id and task_attempt from dir_name.
Return task_id and task_attempt from dir_name.
Return task_id and task_attempt from dir_name .
def _split_task_directory(self, task_dir):
    """Return task_id and task_attempt from dir_name."""
    if '.' in task_dir:
      return task_dir.split('.')
    else:
      return task_dir, None
def _split_task_directory ( self , task_dir ) : if '.' in task_dir : return task_dir . split ( '.' ) else : return task_dir , None