Skip to content

Warn/Error if the decorators aren't properly used #400

@qianl15

Description

@qianl15

If you forget to prepend @ to DBOS.step or any DBOS decorator, it will silently not to wrap or register the function.

For example, the following code won't report any error but simply don't checkpoint the step.

DBOS.step()
def step_one():
    DBOS.logger.info("Step one completed!")

@app.get("/workflow")
@DBOS.workflow()
def example_workflow():
    step_one()

Expected behavior: print an error message or warning to the user.

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