Function Pacchettino.cleanup
Removes processed jobs kept in the success, failed and/or interrupted directories.
ulong cleanup(
Pacchettino . KeepPolicy which = KeepPolicy .ALL,
core .time .Duration olderThan = zero()
) const;
Parameters
| Name | Description |
|---|---|
| which | Which directories to clean (e.g. KeepPolicy.SUCCESS | KeepPolicy.FAILED). |
| olderThan | Only remove jobs whose last modification time is older than this. Zero removes all. |
Returns
The number of removed jobs.