Closed kraftp closed 2 months ago
npx dbos workflow retry<uuid>
: Retry a workflow from the last step it executed, keeping its UUID.npx dbos workflow restart<uuid>
: Resubmit a workflow, restarting it from the beginning with the same arguments but a new UUID.
Retry and restart are confusing to me. Maybe consider resume
vs retry
? resume
naturally means it starts from where it left off, and retry
naturally means it starts from the beginning with a different UUID.
This PR adds a command-line interface for workflow management. There are five new commands:
npx dbos workflow list
: List workflows run by your application. Takes in parameters to filter on time, status, user, etc.npx dbos workflow get <uuid>
: Retrieve the status of a workflow.npx dbos workflow cancel <uuid>
: Cancel a workflow so it is no longer automatically retried or restarted . Active executions are not halted and the workflow can still be manually retried or restarted.npx dbos workflow resume<uuid>
: Resume a workflow from the last step it executed, keeping its UUID.npx dbos workflow restart<uuid>
: Resubmit a workflow, restarting it from the beginning with the same arguments but a new UUID.