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

Better Error Messages #159

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Better Error Messages #159

merged 1 commit into from
Nov 22, 2024

Conversation

kraftp
Copy link
Member

@kraftp kraftp commented Nov 22, 2024

Improve the error messages you see when you call DBOS.sleep() from outside a workflow.

ctx.workflow_id, ctx.curr_step_function_id, seconds
)
else:
# Cannot call it from outside of a workflow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the TS version I just made it sleep. Does that make sense or not really.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather give the unambiguous error message so people aren't surprised by unexpected behavior (no durability).

@kraftp kraftp merged commit 717f71b into main Nov 22, 2024
5 checks passed
@kraftp kraftp deleted the kraftp/better-errors branch November 22, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants