Replies: 2 comments 2 replies
-
Hi @steebchen this looks like a good first pass to me. I'll add some additional interfaces to align with this general spec. Curious, have you put thought into the invocation of the step function? @abelanger5 and I were discussing and it seems like we might need to wrap the worker in something like a nextjs API route to support serverless/vercel deployments. I think this will be a common usecase for this sdk. Also, I'm not sure how we plan to bundle these SDKs, but I think we'll want a typescript SDK and then a separate nextjs SDK that adds the route and depends on the typescript SDK. We'll likely need additional TS frameworks in the future. Make sense? |
Beta Was this translation helpful? Give feedback.
-
A couple of things to watch out for, for this function definition: async (ctx: HatchetContext, input: UserCreateInput): Promise<NextStep> => {
return `Hi, ${input.username}!`
} Doesn't quite match the Go or Python SDK. Dynamically deserializing the input and parent steps to strongly typed function arguments is a super nice feature, but adds considerable complexity to all of the SDKs, so perhaps we just keep using the Also, will we require that the functions are
@grutt this makes sense to me. |
Beta Was this translation helpful? Give feedback.
-
Hatchet needs a TypeScript SDK.
My syntax proposal:
Pushing events
Worker
Beta Was this translation helpful? Give feedback.
All reactions