hatchet-dev / hatchet

A distributed, fault-tolerant task queue

Home Page:https://hatchet.run

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

abelanger5 opened this issue · 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.

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