Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pipeline): fixed pipeline create/validate/trigger client code #181

Closed
wants to merge 1 commit into from

Conversation

joremysh
Copy link
Collaborator

@joremysh joremysh commented Jul 25, 2024

Because

  • some fields in payload are missing

This commit

  • fixed create_pipeline/validate_pipeline/trigger_pipeline client functions

tested on local with code below

name = "test5-2"
client.pipeline_service.create_pipeline(
    name,
    "this is a pipeline for demo",
    {
        "output": {"result": {"title": "result", "value": "${variable.input}"}},
        "variable": {"input": {"instillFormat": "string", "title": "input"}},
    },
    False,
)
client.pipeline_service.validate_pipeline(name, False)
print(
    client.pipeline_service.trigger_pipeline(
        name, [{"input": "hello world"}], [], False
    )
)

output:
image

@joremysh joremysh requested a review from heiruwu as a code owner July 25, 2024 08:48
Copy link

linear bot commented Jul 25, 2024

@joremysh joremysh closed this Jul 26, 2024
@joremysh joremysh deleted the jeremy/INS-5096 branch October 10, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: 👋 Done
Development

Successfully merging this pull request may close these issues.

2 participants