Send event
Sends 1 or more events to the Inngest server. Returns a list of the event IDs.
@inngest.create_function(
fn_id="my_function",
trigger=inngest.TriggerEvent(event="app/my_function"),
)
async def fn(
ctx: inngest.Context,
step: inngest.Step,
) -> list[str]:
return await step.send_event("send", inngest.Event(name="foo"))