Kubeflow管道-将字符串传递到输出

时间:2019-05-31 15:37:10

标签: kubeflow

通过Kubeflow管道中的输出沿字符串发送的最简单方法是什么?我想在第一个组件中创建一个时间戳,然后将该时间戳发送到管道中的每个后续步骤。

我看到的发送输出的唯一方法是通过docs中的文件路径。这是我的component.yaml文件的一部分,显示了我的意思:

name: CSV Filter
description: Connects to GCSPath and filters columns using specific column name
inputs:
- {name: Training Set URI, type: GCSPath, description: 'GCS path to training set CSV'}
- {name: Filter Column, type: String, default: 'model_type', description: 'Filter Column Name'}
- {name: Filter Value, type: String, description: 'The value you are filtering for.'}
- {name: Output 1 URI template, type: GCSPath, description: 'GCS path template for filtered training set CSV'}
outputs:
- {name: Output 1 URI, type: GCSPath, description: 'GCS path for filtered training set CSV'}
- {name: Timetag File, type: GCSPath, description: 'Timetag based on time since last UNIX Epoch. Used for version control.'}

感兴趣的区域是输出中的“时间标签文件”。我只想发送一个字符串,而不是创建文件。只需将“ type:GCSPath”更改为“ type:String”就足够了,这样在我的管道步骤中,我将能够访问该字符串?

换句话说,我应该只是将字符串保存到组件中python代码中的文件路径中,还是有更好的方法?

0 个答案:

没有答案
相关问题