Skip to content

Conversation

@maxdml
Copy link
Collaborator

@maxdml maxdml commented Sep 10, 2025

Call DBOS operations inside RunAsStep if within a workflow.

One thing this PR had to fix is the forked workflow ID generation, which was at a higher level and not idempotent. The systemDB forkWorkflow now returns the forked workflow ID.

assert.Equal(t, WorkflowStatusCancelled, status.Status, "expected enqueued workflow status to be WorkflowStatusCancelled")

return "should-never-see-this", nil
return "", nil
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now, GetStatus from within a workflow that was cancelled will return an error -- because the step checkpointing detects the workflow was cancelled.

@maxdml maxdml merged commit e79823b into main Sep 12, 2025
2 checks passed
@maxdml maxdml deleted the special-steps branch September 12, 2025 01:54
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.

3 participants