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

[Feature Request] Workflow-init support #400

Open
4 of 6 tasks
cretz opened this issue Jan 12, 2024 · 2 comments
Open
4 of 6 tasks

[Feature Request] Workflow-init support #400

cretz opened this issue Jan 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cretz
Copy link
Member

cretz commented Jan 12, 2024

Describe the solution you'd like

Workflows need a way to run code before start to setup handlers and anything else they may want. This would accept the same input as the workflow, but can only error not return a value. Right now, especially in our languages that let you predefine handlers, it is tough to have an update/signal handler rely on workflow input.

NOTE: This is still conceptual and subject to architectural and value discussions on whether we even want to do this much less how.

@cretz cretz added the enhancement New feature or request label Jan 12, 2024
@sync-by-unito sync-by-unito bot closed this as completed Jul 12, 2024
@josh-berry josh-berry reopened this Jul 13, 2024
@roxblnfk
Copy link
Collaborator

roxblnfk commented Aug 2, 2024

Is it implied that tasks can be run in the init method?

@cretz
Copy link
Member Author

cretz commented Aug 5, 2024

While it technically would work, it is discouraged. I do not believe init should be async in languages that differentiate. This should just be for state. I think PHP should wait for Go and to even see where we want to do this in Go.

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

No branches or pull requests

3 participants