mix durable.cleanup (Durable v0.1.0-rc)
View SourceDeletes old workflow executions from the database.
Cascade deletes handle associated step executions, pending inputs, and events.
Usage
mix durable.cleanup --older-than DURATION [options]Options
--older-than DURATION- Required. Delete executions older than this duration. Supports:30d(days),24h(hours),60m(minutes)--status STATUS- Only delete executions with this status (default: completed, failed). Can be specified multiple times.--dry-run- Show how many records would be deleted without deleting--batch-size N- Number of records to delete per batch (default: 1000)--name NAME- The Durable instance name (default: Durable)
Examples
mix durable.cleanup --older-than 30d
mix durable.cleanup --older-than 24h --status completed --dry-run
mix durable.cleanup --older-than 7d --batch-size 500