Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abelanger5 opened this issue Mar 17, 2024 · 1 comment
Open

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

abelanger5 opened this issue Mar 17, 2024 · 1 comment

Comments

@abelanger5
Copy link
Contributor

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.

@grutt
Copy link
Contributor

grutt commented Mar 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants