Has anyone used prefect with feast on GKE?
# ask-community
a
Has anyone used prefect with feast on GKE?
a
just curious: do you have any specific issue with installation or so? I’ve just seen feast has also a Slack community in case you have a feast-specific question: slack.feast.dev
k
I think you can use the ShellTask to invoke the Feast CLI.
👍 1
a
Copy code
from prefect import Flow
    from prefect.tasks.shell import ShellTask

    task = ShellTask(helper_script="cd ~")
    with Flow("My Flow") as f:
        # both tasks will be executed in home directory
        contents = task(command='ls')
        mv_file = task(command='mv .vimrc /.vimrc')

    out = f.run()
This is working it throws error when i intentionally do something wrong but the thing is it does not tell the cause of that error just says [2021-11-04 185731+0500] ERROR - prefect.ShellTask | Command failed with exit code 1 [2021-11-04 185731+0500] INFO - prefect.TaskRunner | FAIL signal raised: FAIL('Command failed with exit code 1') [2021-11-04 185731+0500] INFO - prefect.TaskRunner | Task 'ShellTask': Finished task run for task with final state: 'Failed'. it would be great if i can see the reason like table not found etc
a
Can you try setting this?
Copy code
task = ShellTask(helper_script="cd ~", return_all=True, stream_output=True)
👍 1
a
Awesome it works. i can see in logs the main cause of errors.
👍 1