将additionalUserLabels
添加到由dataflow.projects.locations.templates.create
创建的数据流作业的运行时环境(Node SDK)之后,数据流无法检索作业图,并且日志中未显示其他错误。
如果不将additionalUserLabels
用于相同的作业配置,则一切正常。
复制步骤:
使用以下命令从模板(Node SDK)中插入数据流作业:
const ressource = {
location: process.env.PIPELINES_LOCATION,
environment: { tempLocation: myPipeline, additionalUserLabels: {'client_id': clientId}},
jobName: myJobName,
gcsPath: mygcsPath,
parameters: myParameters
}
dataflow.projects.locations.templates.create({
projectId: myProject,
location: myLocation,
resource: ressource
})