Closed dthyresson closed 1 year ago
Latest commit: e695f985b8b3ce7824c912912cfb6cec04dcfb70
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
Updates to Inngest SDK v2
Breaking Changes
Inngest SDK v2 has some breaking changes that will require some manual code change to existing apps.
Logging
Logging has changed in v2. See: https://www.inngest.com/docs/guides/logging.
It is now set in the client and used as part of Inngest's middleware. The plugin will try to use the Inngest client's logger first and then this logger setting.
Delayed Functions
In addition to delaying via a
sleep
duration, you can nowsleepUntil
a timestamp or a variable in event data:Scheduled Functions
A scheduled function now uses the logger to output success rather than a payload message.
Note that one can access Inngest's
logger
set on the client from theevent
:RedwoodJS
api/src/functions/inngest.ts
function has several changes:serve
handler, instead of theINNGEST_APP_NAME
now one passes the completeinngest
client.This name is still defined in
api/src/lib/inngest.ts
:serve
path to beservePath: '/.redwood/functions/inngest'
instead of simply/inngest
.One you then start the Inngest dev server as:
Fixes https://github.com/inngest/envelop-plugin-inngest/issues/144