function
TaskRetention
Control how long terminal task status and output remain inspectable.
Arguments
| Argument | Type | Description |
|---|---|---|
retention | time.Duration | Duration before bounded worker pruning may remove terminal records. |
Returns
An immutable task policy option.
TaskOptionFull signature
func TaskRetention(retention time.Duration) TaskOptionRelated types
TaskOptionOpaque policy applied by NewTask.