hatchet icon indicating copy to clipboard operation
hatchet copied to clipboard

feat(sdk): expose `registerAction` on python and typescript SDKs

Open abelanger5 opened this issue 1 year ago • 1 comments

Allow users to set registerAction so they can run steps on different workers. This also involves letting users call a step which isn't registered on that workflow/worker, so this involves a little bit of work on the workflow models for each SDK.

abelanger5 avatar Mar 17 '24 15:03 abelanger5

For registering the step in the workflow are we thinking we'll just add a prop and enforce either run or action?

{
    run: Function,
    action: string
}

for Python, I guess we'll need to decorate an empty function?


@hatchet.step(action="action:name", parents=["parent"])
def actionStep(self, context : Context):
   pass

Not sure about Go

grutt avatar Mar 19 '24 11:03 grutt