Skip to content

add helper function for converting existing functions to tasks #275

@satra

Description

@satra

right now we have decorators in pydra.mark, which are useful when defining a pydra task directly.

but we can also use them in this form to decorate any arbitrary library function:

pydra_task = task(annotate(...)(function))()

it would be nice to have a simple helper that looked like:

taskify(function, annotation=None) which would internally do the decoration.

this serves the same function as the decorators and can use the decorators internally, but is easier to read and create.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions