inngest / inngestgo

Durable execution in Go with the Golang Inngest SDK. Write durable functions in your existing app.
https://pkg.go.dev/github.com/inngest/inngestgo
Apache License 2.0
29 stars 3 forks source link

Invoking a function uses Background context instead of request.Conext #65

Open ivanvanderbyl opened 2 months ago

ivanvanderbyl commented 2 months ago

I was losing my hair trying to figure out why I couldn't pass anything through the request context to the function, but I eventually discovered that the ctx passed to invoke is not used 🤦🏻

See here: https://github.com/inngest/inngestgo/blob/main/handler.go#L1120C1-L1121C1

I'll submit a PR to fix.