本文整理汇总了Python中Pegasus.service.monitoring.queries.StampedeWorkflowQueries.get_job_instance方法的典型用法代码示例。如果您正苦于以下问题:Python StampedeWorkflowQueries.get_job_instance方法的具体用法?Python StampedeWorkflowQueries.get_job_instance怎么用?Python StampedeWorkflowQueries.get_job_instance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pegasus.service.monitoring.queries.StampedeWorkflowQueries
的用法示例。
在下文中一共展示了StampedeWorkflowQueries.get_job_instance方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_job_instance
# 需要导入模块: from Pegasus.service.monitoring.queries import StampedeWorkflowQueries [as 别名]
# 或者: from Pegasus.service.monitoring.queries.StampedeWorkflowQueries import get_job_instance [as 别名]
def get_job_instance(username, m_wf_id, wf_id, job_instance_id):
"""
Returns job instance identified by m_wf_id, wf_id, job_id, job_instance_id.
:query boolean pretty-print: Return formatted JSON response
:statuscode 200: OK
:statuscode 401: Authentication failure
:statuscode 403: Authorization failure
:statuscode 404: Not found
:return type: Record
:return resource: JobInstance
"""
queries = StampedeWorkflowQueries(g.stampede_db_url)
record = queries.get_job_instance(job_instance_id)
#
# Generate JSON Response
#
response_json = jsonify(record)
return make_response(response_json, 200, JSON_HEADER)