Commits

adamv committed 5670e53

Retun completed Task instead of "true"

Comments (0)

Files changed (1)

         # TODO: This returns true when there is an error
         while True:
             if task.info.state == 'success':
-                return True
+                return task
             elif task.info.state == 'error':
                 # TODO: Handle error checking properly
                 raise TaskFailed(error=task.info.error.localizedMessage)