コード例 #1
0
ファイル: main.py プロジェクト: simpleranchero/rally
    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)
コード例 #2
0
ファイル: test_db_api.py プロジェクト: simpleranchero/rally
 def _get_task(self, uuid):
     return db.task_get_by_uuid(uuid)