'After the process is finished, this can be called to get the return code
:return: the exit code of the process
:rtype: int'

@property
def exit_code(self):

    if (not self._done):
        raise AirflowException(u'Tried    to    call    retcode    before    process    was    finished!')
    return self._process.exitcode
