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

[Workflow] Support multiple constructors #10

Open
vaastav opened this issue Sep 15, 2023 · 0 comments
Open

[Workflow] Support multiple constructors #10

vaastav opened this issue Sep 15, 2023 · 0 comments
Assignees
Labels

Comments

@vaastav
Copy link
Contributor

vaastav commented Sep 15, 2023

In GitLab by @JonathanMace on Sep 16, 2023, 24:49

It is reasonable for a workflow spec to provide multiple constructors for a service, e.g. with expanded configuration options.

The current workflow spec parsing logic does not support multiple constructors, but there is no fundamental reason preventing us from doing so.

One option is to allow the workflow spec to state exactly which constructor to invoke

Another option is to pattern-match the constructor based on the args provided in the wiring spec.

@JonathanMace JonathanMace self-assigned this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants