Workflow Retention Policies
Retention policies require DBOS Python >= 1.5.0 or DBOS TypeScript >= 2.10.24
You can configure workflow history retention policies for your application from the Retention Policy page of the DBOS Console. These settings let you configure how long workflow history is retained in your application's system database. This is useful for managing the database disk usage of workflow history.

Time Threshold
If a time threshold is set, workflow history is only retained for X hours. History of completed workflows that started more than X hours ago is automatically deleted. Time-based retention is disabled by default.
Rows Threshold
If the rows threshold is set, history is only retained for the last X completed workflows. History of additional completed workflows is automatically deleted. By default, the rows threshold is set to 1M rows. You can set both a rows threshold an a time threshold.
Global Timeout
If a global timeout is set, any workflow that has not completed X hours after it was created (started or enqueued) is automatically cancelled. By default, the global timeout is disabled.