Open ysk24ok opened 5 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.
Can anybody ask this questionns? Thanks!
"Does it mean we can't use dsl.PipelineTaskFinalStatus with dsl.container_component?"
@connor-mccarthy @chensun
@ysk24ok
Hi, have you known how to fix this problem?
dsl.PipelineTaskFinalStatus
is a placeholder, not a type annotation. Usage is as follows:
@dsl.container_component
def SampleExitOp(status: str = dsl.PipelineTaskFinalStatus):
@connor-mccarthy Thank you for your response.
I tried with the following pipeline,
but got the following error.
File "/Users/y-nishioka/repos/examples/kfp_v2/venv/lib/python3.11/site-packages/kfp/compiler/pipeline_spec_builder.py", line 667, in _fill_in_component_input_default_value
input_name].default_value.string_value = default_value
^^^^^^^^^^^^
I'm using kfp 2.7.0. Am I missing something?
It seems like dsl.PipelineTaskFinalStatus
is a dataclass, not a placeholder like dsl.PIPELINE_JOB_NAME_PLACEHOLDER
.
@ysk24ok, you are correct. My previous comment was a mistake.
Can you please share how you are using your component in your pipeline?
Have same problem more or less and yes it seems that PipelineTaskFinalStatus
doesnt work in container_components as it does in components - fails with AttributeError: 'InputValuePlaceholder' object has no attribute 'state'
Is there a way to get the final status of pipeline in kfp v2? I tried to use PipelineTaskFinalStatus
in a container component, but I encountered the same issue and obtained the same result as mentioned above.
macOS Sonoma 14.2.1 Python 3.11 kfp 2.4.0
I tried implementing a container component which does exit handling.
When I compiled a pipeline which has the
SampleExitOp
component, the following error was shown.Does it mean we can't use
dsl.PipelineTaskFinalStatus
withdsl.container_component
?