Skip to content

Why can't send be executed from within steps? #509

@nate-getea

Description

@nate-getea

The check at

assert ctx.is_workflow(), "send() must be called from within a workflow"
seems to block the use of DBOS.send and its async variant from within workflow steps. As the method can be called from outside the DBOS application anyways using a client, what is the purpose of this limitation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions