Helper method to start the task and wait for completion.

        Mainly used when we are submitting the task via the shell without passing through a queue manager.

def start_and_wait(self, *args, **kwargs):
        """
        Helper method to start the task and wait for completion.

        Mainly used when we are submitting the task via the shell without passing through a queue manager.
        """
        self.start(*args, **kwargs)
        retcode = self.wait()
        return retcode