Skip to content

Decorators should not override function call #140

Description

@raar1

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions