Replies: 1 comment
-
Released |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This document outlines changes to v0.5.
New features
step.infer
(docs)Breaking changes
Move
step
intoctx
The
step
object will be moved toctx.step
.Before:
After:
Parallel steps
step.parallel
will be removed in favor of a newctx.group.parallel
method. This method will behave the same way, so it's a drop-in replacement forstep.parallel
.Remove
event.user
We're sunsetting
event.user
. It's already incompatible with some features (e.g. function run replay).Disallow mixed async-ness within Inngest functions
Setting an async
on_failure
on a non-async Inngest function will throw an error:Setting a non-async
on_failure
on an async Inngest function will throw an error:Static error when passing a non-async callback to an async
step.run
When passing a non-async callback to an async
step.run
, it will work at runtime but there will be a static type error.inngest.Function
is genericThe
inngest.Function
class is now a generic that represents the return type. So if an Inngest function returnsstr
then it would beinngest.Function[str]
.Middleware order
Use LIFO for the "after" hooks. In other words, when multiple middleware is specified then the "after" hooks are run in reverse order.
For example, let's say the following middleware is defined and used:
The middleware will be executed in the following order for each hook:
before_execution
--A
thenB
.after_execution
--B
thenA
.The "before" hooks are:
The "after" hooks are:
Remove middleware hooks
before_memoization
after_memoization
Remove experimental stuff
inngest.experimental.encryption_middleware
(it's now the inngest-encryption package).experimental_execution
option on functions. We won't support nativeasyncio
methods (e.g.asyncio.gather
) going forward.Dependencies
Drop support for Python
3.9
.Bump dependency minimum versions:
Bump peer dependency minimum versions:
Beta Was this translation helpful? Give feedback.
All reactions