Ejemplo n.º 1
0
    def status(self, task_id):
        """Get status of task

        :param task_uuid: Task uuid
        Returns current status of task
        """
        try:
            task = db.task_get_by_uuid(task_id)
            print(_("Task %(task_id)s is %(status)s.") % {"task_id": task_id, "status": task["status"]})
        except exceptions.TaskNotFound as e:
            print(e)
        except Exception as e:
            print(_("Something went wrong %s") % e)
Ejemplo n.º 2
0
 def _get_task(self, uuid):
     return db.task_get_by_uuid(uuid)