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

Decorators should not override function call #140

Open
raar1 opened this issue Jan 20, 2021 · 0 comments
Open

Decorators should not override function call #140

raar1 opened this issue Jan 20, 2021 · 0 comments

Comments

@raar1
Copy link
Contributor

raar1 commented Jan 20, 2021

In the noodles execution approach we intend to use @schedule on individual steps in order to construct the workflow. This modifies the function call so that it now returns a promise rather than executing the function itself.

If instead the decorator would add a member (e.g. ._promise to the functions, or ._fairworkflow to the workflow function) then this could be done such that the original function call still works as before.

It might require some conditional switch in the decorator, according to context. It might also be insane. Investigate this.

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

No branches or pull requests

2 participants