Closed jpwilliams closed 9 months ago
Latest commit: 22681951865e9ae6b0c57e1c007ec5b3674e830a
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/inngest/inngest-js/new/feat/invoke-timeout?filename=.changeset/soft-buses-relate.md&value=---%0A%22inngest%22%3A%20patch%0A---%0A%0AAdd%20%60timeout%60%20to%20%60step.invoke()%60%20options%0A)
Summary
Adds a
timeout
option tostep.invoke()
, allowing users to specify a timeout other than the default when invoking a function as a step.Uses the the same
timeout
asstep.waitForEvent()
and function config.The Executor already supports this:
https://github.com/inngest/inngest/blob/658e7a6e003b1a3b4fb0f4349c3c7e635e09b9de/pkg/execution/state/driver_response.go#L159-L163
Checklist
Related