Skip to main content

Workflow Database Retention

Summary

No Workflow retention policy, cleanup job, archival process, partitioning policy or purge command was found.

Affected storage

Definitions/versions, instances/tasks/actions, audit, timeline, processed events and processed/failed outbox records can remain stored indefinitely based on reviewed code.

Hosted-service boundary

The outbox relay processes message status but does not delete old records. No other Workflow background service performs cleanup.

Classification

Retention is Not implemented in the reviewed Workflow service.

Retention periods, legal/audit holds, outbox cleanup, archive exports and safe deletion are recommended subjects for governance; they are not implemented capabilities.

Requires Confirmation

Required retention periods, ownership, archival destinations, recovery expectations and deletion approval require confirmation.

Source References

  • microservices/src/workflow-service/Infrastructure/WorkflowDbContext.cs
  • microservices/src/workflow-service/Messaging/OutboxRelayHostedService.cs
  • microservices/src/workflow-service/Program.cs

See Also

Keywords

Workflow database, EF Core, Workflow schema.

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Next review: 2026-10-20