Skip to content

Cannot use context.Set in faas-flow pipeline. #151

Open
@ctakgh

Description

@ctakgh

Hello,

I'm investigation using faas-flow in my work environment. So far I was able to orchestrate several functions using Apply and Modify methods. My next step is to use context functionality (context.Set("data1-key", "data1-value")) to pass data between different Modify sections of pipeline based on readme info.

I am getting an exception when building faas-flow (faas build -f my-config.yml):

...Step 12/29 : RUN CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w" -a -installsuffix cgo -o handler . && go test $(go list ./... | grep -v /vendor/) -cover ---> Running in 5aa0fd96ab24 \# handler/function function/handler.go:36:10: context.Set undefined (type *openfaas.Context has no field or method Set)...

Please provide an example (like in https://github.com/faasflow/faas-flow-example) where this functionality is working.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions