Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一个 AWS Glue 工作流具有多个链接的 AWS Glue 作业。
如何获取给定 AWS Glue 作业运行 ID 的工作流 ID?
我无法在 aws-cli 中找到 api。
请注意,我正在尝试使用外部 Python 代码分析作业运行指标。
您可以使用此代码获取 runID
import boto3 from awsglue.utils import getResolvedOptions glue_client = boto3.client("glue") args = getResolvedOptions(sys.argv, ['JOB_NAME','WORKFLOW_NAME', 'WORKFLOW_RUN_ID']) runID = args['WORKFLOW_RUN_ID']