method
App.CleanupUploads
Delete orphan candidates reported by upload reconciliation.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
olderThan | time.Duration | The olderThan value. |
Returns
The declared result.
(ReconcileResult, error)How it works
Use a grace period of at least five minutes so in-flight storage preparation is not mistaken for an orphan before its document transaction commits.
Full signature
func (application *App) CleanupUploads(
ctx context.Context,
olderThan time.Duration,
) (ReconcileResult, error)Related types
AppA resolved application bound to operation services.
ReconcileResultResult counters from upload reconciliation.